C:\Users\Bob\AppData\Roaming\Duplicacy\ # Main folder for Duplicacy, holding executables in top folder, and config files and logs in subfolders
C:\Users\Bob\AppData\Roaming\Duplicacy\Duplicacy.exe
C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy-util.exe
C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy-util.yaml
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\cache
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\cache\B2-Bob
...
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\cache\B2-Bob\snapshots\Bob\14
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\filters\
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\keyring\
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\log\ # Empty folder created automatically during init
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\.duplicacy\preferences\
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\Bob.yaml
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\log # Logs are added here when running Duplicacy-Util
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\log\Bob.log
Bob.yaml (located in C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob):
#location of repository (the base directory of the backup)
repository: C:\Users\Bob
#location of storage
storage:
- name: B2-Bob
vss: yes
threads: 18
#prune command, what storage to do it on and what values to use
prune:
- storage: B2-Bob
keep: "30:360 7:180 1:30"
#check command and what storage to do it on
check:
- storage: B2-Bob
Windows Command Line:
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob>duplicacy-util -d -g "C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy-util.yaml" -f Bob -backup
Duplicacy-Util output:
C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob>duplicacy-util -d -g "C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy-util.yaml" -sd "C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob" -f Bob -backup
17:23:59 Using global config: C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy-util.yaml
17:23:59 Using config file: C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\Bob.yaml
17:23:59
17:23:59 Backup Information:
17:23:59 Num Storage Threads
17:23:59 1 B2-Bob 18
17:23:59
17:23:59 Prune Information:
17:23:59 1: Storage B2-Bob
Keep: -keep 30:360 -keep 7:180 -keep 1:30
17:23:59
17:23:59 Check Information:
17:23:59 Num Storage All Snapshots
17:23:59 1 B2-Bob
17:23:59
17:23:59
17:23:59 Backup Info: [map[name:B2-Bob vss:true threads:18]]
17:23:59 Copy Info: []
17:23:59 Prune Info: [map[storage:B2-Bob keep:-keep 30:360 -keep 7:180 -keep 1:30]]
17:23:59 Check Info[map[storage:B2-Bob]]
17:23:59 duplicacy-util starting, version: 1.5, Git Hash: f2e7147
17:23:59 Rotating log files
17:23:59 Beginning backup on 04-23-2021 17:23:59
17:24:03 Backing up to storage B2-Bob -vss with 18 threads
17:24:03 Executing: C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy.exe[backup -storage B2-Bob -stats -threads 18 -vss]
Error executing command: exit status 100
Error: Backup failed. Check the logs for details
Log (located in C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\log):
17:23:59 Beginning backup on 04-23-2021 17:23:59
17:24:03 ######################################################################
17:24:03 Backing up to storage B2-Bob -vss with 18 threads
17:24:03 Executing: C:\Users\Bob\AppData\Roaming\Duplicacy\duplicacy.exe[backup -storage B2-Bob -stats -threads 18 -vss]
17:24:04 Repository has not been initialized
17:24:04 Error executing command: exit status 100
It appears that Duplicacy-Util is running Duplicacy from within "C:\Users\Bob\AppData\Roaming\Duplicacy", not from within "C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob"
How do I fix this? Or is there a better way to keep the config files together?
I think you have it incorrectly configured. Your duplicacy repository is C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\ , yet in your config file you have:
I have the following files structure:
duplicacy-util.yaml:
Bob.yaml (located in C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob):
Windows Command Line:
Duplicacy-Util output:
Log (located in C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob\log):
It appears that Duplicacy-Util is running Duplicacy from within "C:\Users\Bob\AppData\Roaming\Duplicacy", not from within "C:\Users\Bob\AppData\Roaming\Duplicacy\Config\Bob"
How do I fix this? Or is there a better way to keep the config files together?