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?
FTP Backups retention not working
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: FTP Backups retention not working
@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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: FTP Backups retention not working
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?
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
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:
Additionally, please attach this file:
Code: Select all
/usr/local/nagiosxi/var/components/scheduledbackups.logRe: FTP Backups retention not working
Sorry, forgot to mention, newest version possible.
I will attach the file later.
I will attach the file later.
Re: FTP Backups retention not working
Any updates @jacek?Sorry, forgot to mention, newest version possible.
I will attach the file later.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: FTP Backups retention not working
Sorry, was off 1 day, will be at work tomorrow and will give an update.
Re: FTP Backups retention not working
Noted. Whenever you are ready.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: FTP Backups retention not working
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.04-04-2019 01:20:28 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
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.
You do not have the required permissions to view the files attached to this post.
Re: FTP Backups retention not working
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!