Changes

Jump to: navigation, search

stoney backup: Server set-up

400 bytes added, 13:50, 13 June 2014
/* Cronjobs */
**** No: Execute daily rsnapshots using the snapshot.pl script
** Complex/long version: Adapt the snapshot.pl script and call it every day without interval parameter. The script does the logic described above.
** Complex/short version for weekly/daily: Always run the daily after the weekly and set the cronjoby to mon-sat and sun
This avoids the above mentioned collision
 
(Complex) / short version: rule via cronjobs:
<pre>
# Rsnapshot for all users
30 22 * * 1-6 [ $( date +\%d ) -gt 1 ] && /usr/libexec/backup-utils/snapshot.pl --interval daily
15 22 * * 7 [ $( date +\%d ) -gt 1 ] && /usr/libexec/backup-utils/snapshot.pl --interval weekly; /usr/libexec/backup-utils/snapshot.pl --interval daily
00 22 1 * * /usr/libexec/backup-utils/snapshot.pl --interval monthly; /usr/libexec/backup-utils/snapshot.pl --interval weekly; /usr/libexec/backup-utils/snapshot.pl --interval daily
...
</pre>
== scheduleWarning.pl ==
16
edits