2.9 KiB
2.9 KiB
duplicacy-scripts
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 <hostname> sftp://root@gauntnas.home.johnhgaunt.com:50022//mnt/duplicacy/
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.
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:.*
pre/post-backup file
#!/bin/sh
# create the tar backup
tar -cf /root/`hostname -s`-`cat /etc/version | awk -F' ' '{print $1}'`-`date +"%Y%m%d%H%M%S"`.tar -C /data freenas-v1.db geli pwenc_secret
# remove the tar backup
#rm -f /root/`hostname -s`-`cat /etc/version | awk -F' ' '{print $1}'`-*.tar
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:.*
GauntRouter01/02
i:conf/.*
i:usr/$
i:usr/local/$
i:usr/local/AdGuardHome/.*
i:usr/local/bpsensei.*
i:usr/local/etc/$
i:usr/local/etc/rc.syshook.d/$
i:usr/local/etc/rc.syshook.d/carp/$
i:usr/local/etc/rc.syshook.d/carp/10-wancarp
i:usr/local/opnsense/$
i:usr/local/opnsense/service/$
i:usr/local/opnsense/service/conf/$
i:usr/local/opnsense/service/conf/actions.d/.*
e:.*
GauntKeyAccess03
i:etc/.*
e:root/\.cache
i:root/.*
i:opt/.*
i:var/$
i:var/db/$
i:var/db/tang/.*
i:var/spool/$
i:var/spool/cron/.*
e:.*
GauntMailRelay
i:etc/.*
e:root/\.cache
i:root/.*
i:opt/.*
i:var/$
i:var/log/.*
i:var/spool/$
i:var/spool/cron/.*
e:.*
GauntPMG01
i:etc/.*
e:root/\.cache
i:root/.*
i:var/$
i:var/lib/$
i:var/lib/pmg/.*
i:var/log/.*
i:var/spool/$
i:var/spool/cron/.*
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/.*
i:volume1/\.srv/unifi-protect/dbBackups/.*