UBUNTU 16.04 Root Server.
I would like to have a crontab job run an rsync backup job every night at 2:14am. It copies a "folder" from an Ubuntu 16.04 machine to another root server in the internet. There is an ssh connection possible with a ssh key login.
The following command works in the terminal:
/usr/bin/rsync -az --delete -e ssh /home/user/folder/ [email protected]:/home/user/folder
But the following crontab job does not work:
14 2 * * * /usr/bin/rsync -az --delete -e ssh /home/user/folder/ [email protected]:/home/user/folder
I am having a hard time with crontab to be honest. It always feels to be a lucky situation if the job actually works.
Can someone see from the crontab job above what I am doing wrong?
greetings, Chris
> /path/to/outfile 2>&1
and check the content of the file after cron has run the job.