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?
Having issues with backups and rsync
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Having issues with backups and rsync
The general rule of thumb for any script is that it shouldn't spit out errors. Yours appears to be doing so. Are your permissions correct?
Previous Nagios employee
Re: Having issues with backups and rsync
It looks like the switches for --delete-after and --ignore-errors are being used as arguments. The man page shows the command run in the format I have listed and I get errors when putting the switches at the end. Is it a problem with rsync in the Nagios OVA image perhaps?
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Having issues with backups and rsync
If it is a problem with the rsync in the OVA then it came from upstream. We don't modify it so the usage would be the same as anywhere else.
Previous Nagios employee
Re: Having issues with backups and rsync
Any suggestions/options?
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Having issues with backups and rsync
It's not really a Nagios issue per se, but I'd try asking your system administrator or googling "rsync: link_stat".
Previous Nagios employee