dolivervl
(usa Slackware)
Enviado em 06/09/2010 - 18:07h
!/bin/bash
echo "#########################"
echo "##Script Backup ##"
echo "##Diego.Silva ##"
echo "#########################"
echo CRIANDO PASTA BACKUP
mkdir /home/ubuntu/backups/back_$(date +%d"."%m"."%Y)
cp -R /home/ubuntu/Documents /home/ubuntu/backups/back_$(date +%d"."%m"."%Y)
echo BACKUP EFETUADO COM SUCESSO!
Salve esse script e depois configure no crontab
digite
# crontab -e
00 1 * * * /seu_script
salve e feche igual ao vi(esc+wq)
Acho que é so isso!