I want a set of files copied daily from a remote server to local machine at 5 am in the morning. The following crontab entry does not work:
0 5 * * * scp user1@192.168.5.54:/tmp/bkp*tar.gz /home/user1/dir1
This is on Ubuntu 18.04 (if it matters which I don't think it should). The command works when executed manually by the same user in whose crontab this entry is made.
user1
? In which crontab is this line; is that the same user as the manual execution? – Ljm Dullaart Sep 7 '20 at 6:28