Hi,
How do I do a scheduled backup?
I think the only way I can is the Local backup but i always get The directory is likely not writeable by user 'nagios' or group 'nagios' - check permissions
Please advise.
Thanks,
G.
Nagios XI Backup
Re: Nagios XI Backup
It sounds like you're already this far, but you can specify local backups (in addition to SSH or FTP backups) at the following page:
If you hit test permissions and you're getting a permissions problem, that means that the directory you've selected for backups is probably not read/write-able by the 'nagios' user. To test this, log into the nagios device using SSH or similar, and run the following command:
For example, if I chose /nagiosbackups/backups as my directory of choice, I would run:
This will give us a list of permissions for that directory.
You will want this directory to be owned by nagios/nagios, and the nagios user needs proper permissions. Following my example, we'll change the directory permissions with the following command:
Let's check the permissions now...
Code: Select all
ls -l <backup directory here>Code: Select all
ls -l -d /nagiosbackups/backupsNote that drwxr-xr-x are the read-write permissions, and root root is the owner/group.ls -l -d /nagiosbackups/backups
drwxr-xr-x 2 root root 4096 May 11 15:12 /nagiosbackups/backups
You will want this directory to be owned by nagios/nagios, and the nagios user needs proper permissions. Following my example, we'll change the directory permissions with the following command:
Code: Select all
chmod u+rw /nagiosbackups/backup
chmod g+rw /nagiosbackups/backup
chown nagios:nagios /nagiosbackups/backupLooks good - run 'test permissions' once more and you should see it pass successfully.ls -ld /nagiosbackups/backups/
drwxrwxr-x 2 nagios nagios 4096 May 11 15:12 /nagiosbackups/backups/
You do not have the required permissions to view the files attached to this post.