Misc scripts
Renaming daily/weekly/monthly rsnapshot folders
If something went wrong with rsnapshot, it might be neccessary to remove the last created backup folder. But then you'd have to rename the whole lots again, so that the new last one is called 0. For instance, you have 29 daily backups and remove daily.0. This command will rename 1 to 0, 2 to 1, 3 to 2, etc:
for i in `seq 1 29`; do mv daily.$i daily.`expr $i - 1`; done