I don’t think you need to mess with dummy directories; or need a video tutorial.
Here is a quick tutorial for you:
Setup dummy repository and two storages
% mkdir /tmp/{data,storage1,storage2}
% cat >> /tmp/data/file.txt <<EOF
heredoc> Hello!
heredoc> This is a test file!
heredoc> EOF
% cd /tmp/data
% ls
file.txt
Init repository and add first storage. if you don’t specify storage name – the name will be “default”, so I always specify.
% duplicacy init -storage-name storage1 snapshot1 /tmp/storage1
/tmp/data will be backed up to /tmp/storage1 with id snapshot1
Add second storage:
% duplicacy add storage2 snapshot2 /tmp/storage2
/tmp/data will be backed up to /tmp/storage2 with id snapshot2
Everything is written into .duplicacy/preferences file. You can edit stuff there – like, rename storage for example.
% cat .duplicacy/preferences
[
{
"name": "storage1",
"id": "snapshot1",
"repository": "",
"storage": "/tmp/storage1",
"encrypted": false,
"no_backup": false,
"no_restore": false,
"no_save_password": false,
"nobackup_file": "",
"keys": null,
"filters": "",
"exclude_by_attribute": false
},
{
"name": "storage2",
"id": "snapshot2",
"repository": "",
"storage": "/tmp/storage2",
"encrypted": false,
"no_backup": false,
"no_restore": false,
"no_save_password": false,
"nobackup_file": "",
"keys": null,
"filters": "",
"exclude_by_attribute": false
}
]%
Now backup to first storage:
% duplicacy backup -storage storage1
Storage set to /tmp/storage1
No previous backup found
Indexing /tmp/data
Parsing filter file /tmp/data/.duplicacy/filters
Loaded 0 include/exclude pattern(s)
Packed file.txt (28)
Backup for /tmp/data at revision 1 completed
Backup to second storage:
% duplicacy backup -storage storage2
Storage set to /tmp/storage2
No previous backup found
Indexing /tmp/data
Parsing filter file /tmp/data/.duplicacy/filters
Loaded 0 include/exclude pattern(s)
Packed file.txt (28)
Backup for /tmp/data at revision 1 completed
That’s it…
If you want to be able to copy between two storages, when creating second storage make sure to make it copy-compatible. See add command’s manual. e.g. duplicacy add -help