Running Duplicacy as a Service on Windows from CLI

Question for Windows version.

As I understand it, one advantage of installing the Web edition is that it supports running Duplicacy as a service. This then means that it is possible to back up folders for any user without being logged in as that user.

From what I’ve read, the web edition UI is just a front end to the command shell version. For the web edition the command shell executable is located at:
C:\ProgramData.duplicacy-web\bin\duplicacy_win_x64_3.2.3.exe

From the command line , if I try ro run a backup of some other user’s files, I get the error:
Failed to list the repository root: open \?\c:\users\test_user: Access is denied.

Running the same backup from the Web version is successful.

Can anyone help?

Thanks

  1. run that as a system user or administrator
  2. specify -vss flag.

Thanks. This appears to work except that there is no log file.

What I did:
Created a user duplicacy_user and added it to Administrators group.
Logged in to duplicacy_user account.
In an elevated command shell executed the following:

duplicacy_win_x64_3.2.3 init -repository "c:\users\test_user" test_repository "d:\dup_storage"
duplicacy_win_x64_3.2.3 backup -stats -vss

The last part of the output to the command shell was:

Backup for C:\Users\test_user at revision 1 completed
Files: 4069 total, 757,137K bytes; 3671 new, 757,137K bytes
File chunks: 168 total, 757,137K bytes; 128 new, 654,425K bytes, 335,642K bytes uploaded
Metadata chunks: 4 total, 960K bytes; 4 new, 960K bytes, 352K bytes uploaded
All chunks: 172 total, 758,097K bytes; 132 new, 655,385K bytes, 335,994K bytes uploaded
Total running time: 00:00:33
10 directories were not included due to access errors
The shadow copy has been successfully deleted

However, no log file was saved to C:\ProgramData.duplicacy\logs (or to C:\ProgramData.duplicacy-web\logs)

Any ideas why? Thanks

Duplicacy logs to stdout. If you want it saved to a file — redirect it to file.

As simple as that! Sorry, I just assumed that log files would be generated automatically.

Thanks.

1 Like