Oh most definitely not automatic, you have to set up a scheduled task…
There’s a few ways to do this. One is to create a .bat file, but these days Microsoft is pushing to replace that with PowerShell, so that’s what I’d suggest. Pretty much the same commands, though.
Create a text file called
duplicacy.ps1 and put it in
C:\Duplicacy (it doesn’t have to go in there but it’s a good place to put it), with the following as example:
duplicacy -log backup -vss -stats
duplicacy -log backup -stats
Replace pathnames as appropriate, add or remove sections for each repository you want to back up.
Press the Start button, type ‘task’ and select Task Scheduler. Right-click Task Scheduler Library on the left and Create Basic Task. Run through the wizard - you want to Start a program.
For program/script, put simply
For Add arguments, put
-ExecutionPolicy Bypass C:\Duplicacy\duplicacy.ps1 (don’t forget the minus/dash immediately before ExecutionPolicy)
Tick Open the Properties dialog… before clicking Finish so you can make a minor change. On the next dialog, tick Run with highest privileges and then OK.
To test, right-click the task and Run. Otherwise, it’ll run on your schedule.
Some notes… Because you want to backup your user profile under C:\Users, those files will be in use, so the example above adds the
-vss switch to tell Duplicacy to make a shadow copy snapshot before backing up that repository. This requires elevated privileges, hence the minor change to the basic task.