From 1afd3cac858ffd9b2ec0d75de09ea98b3ca1bf9c Mon Sep 17 00:00:00 2001 From: jgaunt Date: Tue, 23 Feb 2021 22:05:23 -0500 Subject: [PATCH] Update 'README.md' --- README.md | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/README.md b/README.md index f836cb6..6177dbd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,91 @@ # 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 * * * /opt/duplicacy-scripts/duplicacy.sh +``` + +### Duplicacy init setup +``` +cd / +duplicacy init sftp://duplicacy@gauntnas.home.johnhgaunt.com//mnt/data-pool/backups/duplicacy/data +duplicacy set -key ssh_password -value +``` + +### 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). + +### Duplicacy copy setup +Only the bitwarden data is backed up as that is the most important data. No encryption is needed as all the data is already encrypted. +``` +duplicacy add -copy default sftp://duplicacy@.home.johnhgaunt.com//backups/duplicacy +duplicacy set -storage -key ssh_password -value +duplicacy copy -to -id +``` +#### then to actually copy the files off +the script takes `-c|--copyOffsite` agrument and then will copy the files to the offsite backup + + +### 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/.* +e:root/\.cache +i:root/.* +e:.* +``` + +#### GauntPlex +``` +i:etc/.* +e:root/\.cache +i:root/.* +i:opt/.* +i:var/$ +i:var/lib/$ +i:var/lib/plexmediaserver/.* +i:var/spool/$ +i:var/spool/cron/.* +e:.* +``` + +#### GauntRouter +``` +i:cf/.* +``` +#### GauntKeyAccess03 +``` +i:etc/.* +e:root/\.cache +i:root/.* +i:opt/.* +i:var/$ +i:var/db/$ +i:var/db/tang/.* +e:.* +``` + +#### GauntUNVR +``` +i:volume1/$ +i:volume1/\.srv/$ +i:volume1/\.srv/unifi-protect/$ +i:volume1/\.srv/unifi-protect/backups/.* +i:volume1/\.srv/unifi-protect/data/.* +i:volume1/\.srv/unifi-protect/logs/.* +```