I have set up the following on my Windows 11 PC:
C:\BackupRoot\
duplicacy_win_x64_3.2.3.exe
D_MyProject // SYMLINK to D:\Documents\Product\MyProject
.duplicacy // Directory created with original “duplicacy init” command
C:\Program Files\Duplicacy\
duplicacy.lnk // shortcut to C:\BackupRoot\duplicacy_win_x64_3.2.3.exe
// Allows duplicacy CLI to be executed from PATH with a simple “duplicacy” command.
D:\Documents\Product\MyProject\
// This is the project tree I want to backup.
S:\MyBackupStorage\
// This is where the backup contents will be stored.
My observations:
Regardless of where I change directory to, the “duplicacy init” command always wants to create the .duplicacy directory where duplicacy_win_x64_3.2.3.exe resides (in C:\BackupRoot.)
So when I want to restore my backup to, for example, D:\BackupRestore, I do the following:
C:> D:
D:> cd \BackupRestore
D:> duplicacy init MyProjectBackup S:\MyBackupStorage
I then get the warning:
The repository C:\BackupRoot has already been initialized
If I go ahead and do the restore:
D:> duplicacy restore -r 1
Nothing happens in the D:\BackupRestore directory:
Storage set to S:\MyBackupStorage
Loaded 0 include/exclude pattern(s)
Indexing C:\BackupRoot
Parsing filter file \?\C:\BackupRoot.duplicacy\filters
Loaded 0 include/exclude pattern(s)
Restoring C:\BackupRoot to revision 1
Restored C:\BackupRoot to revision 1
Total running time: 00:00:01
… which is not what I want at all. What am I not understanding about this?
In the Duplicacy quick-start CLI guide, I see statements like “Duplicacy is very flexible in this regard, as it allows you to create a new repository no matter where it is,” but I’m not finding this to be the case because regardless of where my current working directory is, duplicacy always wants to perform inits in the original C:\BackupRoot directory.
Any suggestions?