Code: Select all
sudo EDITOR=nano crontab -eThat will open or create the file.
You can find the syntax here
So I want the backup to start at 11.30 pm so I enter this line (directly under any others you may have):
Code: Select all
30 23 * * * /usr/bin/rsync -av --delete --exclude=/tmp /home/viking /media/win/viking_home_backup/home/viking is my source and /media/win/ is my USB disk (target) + the backup folder.
In the terminal you would write:
Code: Select all
rsync -av --delete --exclude=/tmp /home/viking /media/win/viking_home_backupBut you need the full path of the program in cron jobs.
I go out with CTRL+O and CTRL+X
To chek your cron jobs you can type crontab -l
I had to write it down