Boa tarde a todos!

Segue abaixo meu script pessoal para backup. Com ele você pode recuperar seus aquivos como eles eram em uma determinada data. Isso não ocupa muito espaço adicional, pois usa hard links. O backup é feito todas as vezes em que o computador é ligado (isso não deixa lento, com o passar dos dias).
Até+
Rafael
Copyright © 2012 Rafael Abreu de Almeida <
rafael.kbps@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
'/home/rafael/Projetos/2012/backup.sh' &
exit 0
/home/rafael/Projetos/2012/backup.sh
#!/bin/bash
# Copyright © 2012 Rafael Abreu de Almeida <rafael.kbps@gmail.com>
sleep 330
umount /mnt
umount /dev/sdb1
mount /dev/sdb1 /mnt
/mnt/lamp/backup.sh
sudo umount /mnt
/mnt/lamp/backup.sh
#!/bin/bash
# Copyright © 2012 Rafael Abreu de Almeida <rafael.kbps@gmail.com>
BackupDir='/mnt/lamp'
CurrentDate=`date +'%Y-%m-%d'`
mysqldump -u root --password=SUA_SENHA_AQUI --all-databases > /var/www/backup-mysql
chown -R rafael:rafael /home/rafael/
sudo rsync \
-Cav \
--exclude=/proc/ \
--exclude=/sys/ \
--exclude=/dev/ \
--delete-excluded \
$Source:/ \
$BackupDir/current/
sudo rsync -Cavz \
--delete-excluded \
--exclude '.gvfs' \
/etc/ $BackupDir/current/etc/
sudo rsync -Cavz \
--delete-excluded \
--exclude '.gvfs' \
/var/www/ $BackupDir/current/var/www/
sudo rsync -Cavz \
--delete-excluded \
--exclude '.gvfs' \
--exclude '.VirtualBox VMs' \
--exclude 'google-chrome/' \
--exclude '.mozilla/firefox' \
--exclude 'Downloads/' \
--exclude '.local/share/' \
--exclude 'home/' \
/home/rafael/ $BackupDir/current/home/rafael/
sudo rm -r $BackupDir/$CurrentDate
sudo cp -al $BackupDir/current/ $BackupDir/$CurrentDate/