DSL Tips and Tricks :: Regular backups



Because i load DSL to RAM, i wrote this for regular backups:
Code Sample
#!/bin/bash
while true; do
sleep 1h
sudo filetool.sh backup noprompt && sudo cp -p /mnt/hdd1/backup.des /mnt/hdb3/backup || xmessage Backup didnot work
sudo cp -p /mnt/hdd1/backup.des /mnt/hdd1/backups/$( date +%Y%m%d )-backup.des
done

Change the obvious if you want to use it and take it for what it is: an ugly little script that works enough for me...


original here.