initial commit
[rsync_backup.git] / rotate_snapshot_monthly.sh
blobdbfbba75bdba661831195f519c359feffcbae62f
1 #!/bin/sh
3 . /etc/conf.d/backup
5 . $BINDIR/backup_lock.sh
7 # rotate old backups
8 ${REMOTE_RM} -rf ${DST}/monthly.3
9 ${REMOTE_MV} ${DST}/monthly.{2,3}
10 ${REMOTE_MV} ${DST}/monthly.{1,2}
11 ${REMOTE_MV} ${DST}/monthly.{0,1}
12 ${REMOTE_CP} -al ${DST}/weekly.3 ${DST}/monthly.0
14 . $BINDIR/backup_unlock.sh