Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I hope this is the right place for this question, but I am having an issue running rsnapshot for one of our servers.
The set up is rsnapshot runs on a central server and runs with the command:backup root@IP address:/ servername/ exclude_file=/path/to/exclusion/file. A rsnapshot sync runs at night followed by an rsnapshot daily which runs every morning. The backups run successfully and are stored on a NAS in the data center.
The issue I am having is that I have a server that is missing the contents of the /home folder. I have two very similar servers with the same exclusion file. The backups work for both of them but one of them is not backing up anything in the /home directory.
Any ideas on what may be causing this? I checked the rsnapshot log and the only thing it says is that the backup completed with some warnings. The ownership of the directories look like they match, as well. Am I missing something somewhere?
Did you verify the /home you're expecting to backup actually has contents?
Is the /home you're expecting to backup or any of its subdirectories nfs mounts. If so are the latter mounted via automount instead of fstab? It may be you're excluding nfs if they're in fstab OR it may be they're simply not mounted at the time you run the backup if they're in automount. (i.e. automount would automatically unmount any directory under its control if not in use.)
Did you verify the /home you're expecting to backup actually has contents?
Is the /home you're expecting to backup or any of its subdirectories nfs mounts. If so are the latter mounted via automount instead of fstab? It may be you're excluding nfs if they're in fstab OR it may be they're simply not mounted at the time you run the backup if they're in automount. (i.e. automount would automatically unmount any directory under its control if not in use.)
Thank you for the reply.
Yes, I did verify that there is content in the directory. I was actually attempting to restore a file which is when I found the problem. The directory is not mounted and is located on the same drive as the OS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.