On 2017-11-16 03:16 AM, Jamie Burchell wrote:
Thanks RayI’ll be honest, I still don’t understand those settings after re-reading several times.What should the incremental period be here 0.97I’m also only interested in one month’s worth, so can that schedule be simplified?Jamie
Hi, I have: Full BackupsFullPeriod <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_fullperiod_> FullKeepCnt <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_fullkeepcnt_> FullKeepCntMin <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_fullkeepcntmin_> FullAgeMax <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_fullagemax_>
Incremental BackupsIncrPeriod <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incrperiod_> IncrKeepCnt <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incrkeepcnt_> IncrKeepCntMin <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incrkeepcntmin_> IncrAgeMax <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incragemax_> IncrLevels <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incrlevels_> IncrFill <http://192.168.103.155/backuppc/index.cgi?action=view&type=docs#_conf_incrfill_>
And then a few scripts that maintain what I want. Attached.This gives me full backups every Friday and on the last day of the month, and keeps backups for as long as I want (specified in prune_backups.sh)
Gerald Gerald
archive_backups.sh
Description: application/shellscript
#!/bin/bash
# force all hosts in the host file do have a full backup on Friday
# unless that Friday is the last workday of the month
if [ ! $(cal | tr -s '[:blank:]' '\n' |tail -1) = $(date +%d) ]
then
for HOST in $(cat /etc/backuppc/hosts | grep ^[A-Za-z0-9] | grep -v host |
grep -v archive | awk '{print $1}')
do
/usr/share/backuppc/bin/BackupPC_serverMesg backup ${HOST} ${HOST} backuppc
1
# echo ${HOST}
done
fi
#!/bin/bash
# force all hosts in the host file do have a full backup on last day of month
TODAY=`/bin/date +%d`
TOMORROW=`/bin/date +%d -d "1 day"`
#if [ $(cal | tr -s '[:blank:]' '\n' |tail -1) = $(date +%d) ]
if [ $TOMORROW -lt $TODAY ]
then
for HOST in $(cat /etc/backuppc/hosts | grep ^[A-Za-z0-9] | grep -v host |
grep -v archive | awk '{print $1}')
do
/usr/share/backuppc/bin/BackupPC_serverMesg backup ${HOST} ${HOST} backuppc
1
# echo ${HOST}
done
fi
prune_backups.sh
Description: application/shellscript
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
