Hi all!
And thanks to Alexander @fd0 for a great piece of software. I love the simplicity of it. Commands are simple to understand. Different backends are a breeze. Backups are fast.
Just wanted to check if my backup strategy is sound. Would you guys do anything different?
- Weekly: OFFSITE backup to B2 on every Monday at 2:23 am
- Weekly: LOCAL backup to a different local machine on every Tuesday at 2:23 am
- Bi-monthly: prune and check indexes OFFSITE B2 on the first Wednesday of every other month at 2:23 am
- Bi-monthly: prune and check indexes LOCAL backup on the second Wednesday of every other month at 2:23 am
- Every six months: verify all files with check --read-data OFFSITE backup on the first Thursday of every six months at 2:23 am
- Every six months: verify all files with check check --read-data LOCAL backup on the second Thursday of every six months at 2:23 am
If someone wants to copy my strategy, my crontab is attached below.
MAILTO="flea@my.domain"
SHELL=/bin/bash
#
# weekly OFFSITE backup to B2 on every Monday at 2:23 am (using variables in .restic-env)
23 2 * * 1 . /home/flea/.restic-env; /usr/bin/restic backup /zpool/Silo/; /usr/bin/restic forget --keep-hourly 24 --keep-daily 7 --keep-monthly 24
#
# weekly LOCAL backup to local machine on every Tuesday at 2:23 am (using variables in .restic-env-local)
23 2 * * 2 . /home/flea/.restic-env-local; /usr/bin/restic backup /zpool/Silo/; /usr/bin/restic forget --keep-hourly 24 --keep-daily 7 --keep-monthly 24
#
# prune OFFSITE B2 on the first Wednesday of every other month at 2:23 am (using variables in .restic-env)
23 2 1-7 */2 * if [ `date +\%u` == 3 ]; then . /home/flea/.restic-env; /usr/bin/restic prune; /usr/bin/restic check; fi
#
# prune LOCAL backup on the second Wednesday of every other month at 2:23 am (using variables in .restic-env-local)
23 2 8-14 */2 * if [ `date +\%u` = 3 ]; then . /home/flea/.restic-env-local; /usr/bin/restic prune; /usr/bin/restic check; fi
#
# check OFFSITE backup on the first Thursday of every six months at 2:23 am (using variables in .restic-env)
23 2 1-7 */6 * if [ `date +\%u` = 4 ]; then . /home/flea/.restic-env; /usr/bin/restic check --read-data; fi
#
# check LOCAL backup on the second Thursday of every six months at 2:23 am (using variables in .restic-env-local)
23 2 8-14 */6 * if [ `date +\%u` = 4 ]; then . /home/flea/.restic-env-local; /usr/bin/restic check --read-data; fi