67 lines
1.1 KiB
Markdown
67 lines
1.1 KiB
Markdown
# duplicacy-scripts
|
|
|
|
[Duplicacy quick-start (CLI) ](https://forum.duplicacy.com/t/duplicacy-quick-start-cli/1101)
|
|
|
|
These scripts are called usually with cron with something like the following
|
|
```
|
|
0 0 * * * /root/duplicacy.sh
|
|
```
|
|
|
|
### Duplicacy init setup
|
|
```
|
|
cd /
|
|
duplicacy init <hostname> sftp://duplicacy@gauntnas.home.johnhgaunt.com//mnt/data-pool/backups/duplicacy/data
|
|
duplicacy set -key ssh_password -value <ssh password>
|
|
```
|
|
|
|
### Testing Filters
|
|
Filters can be easily tested using the backup command: ```duplicacy -d -log backup -enum-only```. This is further explained in [Backup command details](https://forum.duplicacy.com/t/backup-command-details/1077).
|
|
|
|
|
|
### Filter file contents
|
|
|
|
#### GauntBitwarden
|
|
```
|
|
i:etc/.*
|
|
i:opt/$
|
|
i:opt/bitwarden/.*
|
|
i:var/$
|
|
i:var/spool/$
|
|
i:var/spool/cron/.*
|
|
e:.*
|
|
```
|
|
|
|
#### GauntNAS
|
|
```
|
|
i:etc/version
|
|
i:data/.*
|
|
i:root/.*
|
|
```
|
|
|
|
#### GauntPlex
|
|
```
|
|
i:etc/.*
|
|
e:root/\.cache
|
|
i:root/.*
|
|
i:var/$
|
|
i:var/lib/$
|
|
i:var/lib/plexmediaserver/.*
|
|
i:var/spool/$
|
|
i:var/spool/cron/.*
|
|
e:.*
|
|
```
|
|
|
|
#### GauntRouter
|
|
```
|
|
i:cf/.*
|
|
```
|
|
|
|
#### GauntUNVR
|
|
```
|
|
i:volume1/$
|
|
i:volume1/.srv/$
|
|
i:volume1/.srv/backups/.*
|
|
i:volume1/.srv/data/.*
|
|
i:volume1/.srv/logs/.*
|
|
```
|