Page 1 of 3
FTP Backups retention not working
Posted: Wed Apr 03, 2019 9:39 am
by jacek
Hi,
I have setup an FTP backup, which is working quite good, but the retention setting doesn't.
I checked the FTP account using WinSCP and the user has permission to delete the files.
Any clue?
Re: FTP Backups retention not working
Posted: Wed Apr 03, 2019 10:53 am
by npolovenko
@jacek, What is the backup limit is currently set to in the GUI? Can you run ls -l in the directory on the FTP server where backup files are stored and show me the output? What version of XI are you currently running?
Re: FTP Backups retention not working
Posted: Wed Apr 03, 2019 12:18 pm
by jacek
Limit is 7, backups made daily.
At this point I have 8 or 9 already (deleted some of them few days ago).
Can't do the ls -l right now, but don't see the point in that either?
Re: FTP Backups retention not working
Posted: Wed Apr 03, 2019 3:35 pm
by ssax
What version of XI are you using? You can grab it from the bottom left hand side of the web interface.
Additionally, please attach this file:
Code: Select all
/usr/local/nagiosxi/var/components/scheduledbackups.log
Re: FTP Backups retention not working
Posted: Wed Apr 03, 2019 3:45 pm
by jacek
Sorry, forgot to mention, newest version possible.
I will attach the file later.
Re: FTP Backups retention not working
Posted: Thu Apr 04, 2019 1:13 pm
by lmiltchev
Sorry, forgot to mention, newest version possible.
I will attach the file later.
Any updates @jacek?
Re: FTP Backups retention not working
Posted: Thu Apr 04, 2019 2:58 pm
by jacek
Sorry, was off 1 day, will be at work tomorrow and will give an update.
Re: FTP Backups retention not working
Posted: Thu Apr 04, 2019 3:36 pm
by lmiltchev
Noted. Whenever you are ready.
Re: FTP Backups retention not working
Posted: Fri Apr 05, 2019 3:39 am
by jacek
04-04-2019 01:20:28 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
That is the only thing I got in the log and I forced a backup (changed the time it's supposed to happen) and it did it without any issues.
BUT it didn't delete the oldest files again and I have 10 already (screenshots attached from WinSCP FTP as the user that is setup in the scheduled backups), will delete the oldest 2 to make some space for new ones.
Re: FTP Backups retention not working
Posted: Fri Apr 05, 2019 8:19 am
by lmiltchev
If you had 8+ backups already, the "extra" ones (over 7) wouldn't be deleted. You had 10, and deleted two of them manually, so that leaves 8. Nagios won't delete any additional backups in this case... Try leaving only 6 backups to see if after 2 runs, the oldest (8th) backup will be removed.