kmart/snapshot
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
snapshot -------- Backup done in a 'Time Machine' like fashion, using rsync. The scripts are heavily inspired by a similar setup described at: http://blog.interlinked.org/tutorials/rsync_time_machine.html Scripts: snapshot - makes backups of your $HOME directory cleanup - purges old backups Configuration: snapshot Edit the script and set the HOME and BACKUPDIR variables as appropriate. cleanup Edit the script and set the BACKUPDIR and LIMIT variables as appropriate. The scripts should be run from cron, example: $ crontab -l 0 7-20/2 * * 1-5 $HOME/bin/snapshot >> /tmp/snapshot.log 2>&1 0 2 * * 1 $HOME/bin/cleanup >> /tmp/cleanup.log 2>&1 Restore: $ cp (for single files) $ rsync -avz --delete $BACKUPDIR/current/ $HOME/ Check used space: $ du -shc <dir> 2012-05-18 <kmyksvo(at)online.no>