We're basically setting up a crontab with two parts:

  • the local backup
  • the upload of the local backup to a remote FTP server

an alternative would be to use rsync remotely from a dedicated backup host.

Local backup & upload

Fetch the script templates as root,

cd ~/
mkdir -p bin/
cd bin/


chmod +x backup.ksh backup.upload.ksh

Tune what folders you want to backup,

vi backup.lst

Tune your FTP server/login/pass,

vi backup.upload.ksh

Enable the shit every night as root,

crontab -e

0 3 * * * time nice /root/bin/backup.ksh && echo && time nice /root/bin/backup.upload.ksh