Article 5G5W7 rsync help, please

rsync help, please

by
SteveMann
from LinuxQuestions.org on (#5G5W7)
I am not sure what's happening here.
In my user crontab, I have this line:
00 2 * * * sudo rsync -aAv --delete /var/lib/automysqlbackup /mnt/Z/Backups/mediawiki
At 2AM daily, I want to copy the contents of /var/lib/automysqlbackup into an NAS: /mnt/Z/Backups/mediawiki

But nothing is showing up in the NAS folder.

NextI tried manually entering the rsync command:
sudo rsync -aAv --delete --progress /var/lib/automysqlbackup /mnt/Z/Backups/mediawiki
and rsync appears to be working. I can see each filename as if it's being copied to the NAS. (But I don't see them if I monitor the destination folder from Windows Explorer). Then at the end, I get errors on every file similar to this:

rsync: rename "/mnt/Z/Backups/mediawiki/automysqlbackup/daily/mediawiki/.mediawiki_2021-03-29_00h09m.Monday.sql.gz.etXOM0" -> "automysqlbackup/daily/mediawiki/mediawiki_2021-03-29_00h09m.Monday.sql.gz": Input/output error (5)

I tried again as root and got the same results.

What am I doing wrong?
(And is there a better way? I am not a highly experienced Linux user).

FYI, my OS is Ubuntu 18 on an Intel NUC.
There is over 200 GB free on the destination drive and the copied files and folders should only take a few hundred MB.latest?d=yIl2AUoC8zA latest?i=CUNuq1qbz9c:xyD5J3iTWG0:F7zBnMy latest?i=CUNuq1qbz9c:xyD5J3iTWG0:V_sGLiP latest?d=qj6IDK7rITs latest?i=CUNuq1qbz9c:xyD5J3iTWG0:gIN9vFwCUNuq1qbz9c
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments