Having issues with backups and rsync
Posted: Sun Mar 26, 2017 11:44 am
Unable to cleanup old files in rsync. Using command
rsync -avz –-delete-after –-ignore-errors -e ssh /store/backups/nagiosxi/ <user>@<destination>:/home/<user>/nagiosbackup
Output below.
sending incremental file list
rsync: link_stat "/store/backups/nagiosxi/\#226-delete-after" failed: No such file or directory (2)
rsync: link_stat "/store/backups/nagiosxi/\#226-ignore-errors" failed: No such file or directory (2)
./
Backups are transferred but the deletes are not which is cauing the remote directory to fill. Also, I am doing this on a backup user instead of nagios or root. I am trying to keep several backup separate and secure. Any issue with this strategy when using cron to schedule the rsync?
rsync -avz –-delete-after –-ignore-errors -e ssh /store/backups/nagiosxi/ <user>@<destination>:/home/<user>/nagiosbackup
Output below.
sending incremental file list
rsync: link_stat "/store/backups/nagiosxi/\#226-delete-after" failed: No such file or directory (2)
rsync: link_stat "/store/backups/nagiosxi/\#226-ignore-errors" failed: No such file or directory (2)
./
Backups are transferred but the deletes are not which is cauing the remote directory to fill. Also, I am doing this on a backup user instead of nagios or root. I am trying to keep several backup separate and secure. Any issue with this strategy when using cron to schedule the rsync?