The following script sits in cron.daily
and succeeds when called with run-parts
but exits with code 1 when called with anacron -f
on Ubuntu 20.04 LTS. I have had many problems with various versions of this script over the years, it seems to stop working every few months. The script is
#!/bin/sh
#
# MAKE SURE HAVE CORRECT REMOTE/AT-HOME LOGIN SETUP AND THAT TARGET IS TOTEMDOC and source is Documents
#
rsync -azvv -e "ssh -o CheckHostIP=no -i /home/stefan/.ssh/id_rsa" /home/stefan/Documents/ totem@MouseHouse:/totembackup/totemdoc
I used to have problems with path, but I thought the quote marks fixed that. I am at a loss for why it doesn't work anymore.
exit 0
– Aug 30 '20 at 04:05rsync
transfer the file.rsync
needs sufficient rights to preserve permissions (....or give totem sufficient rights). – Aug 30 '20 at 10:55