Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Good evening all. I was hoping for a little advice on how to run an effective backup system. I have two machines. The primary has an Intel P4 cpu and a RAID 1 array. The backup system runs an Intel celeron and only one hdd. My goal is to have the backup be a perfect mirror to the primary server incase it crashes.
So, what would be the best way to accomplish this? Right now I only have two ideas. I could either
A. Use NFS to mount the directories from the backup machine to the primary, and run rsync on the primary which would essentially synchronize the mounted NFS folders with the primary server.
or B. Just run rsync over ssh on my lan.
These are what I need to backup: (the paths should be self-explanatory)
/home/*
/var/lib/mysql/*
/var/log/*
/var/spool/mail/*
/var/www/*
/var/www2/*
/etc/aliases
/etc/passwd
/etc/shadow
/etc/postfix/body_checks
/etc/samba/smb.conf
/etc/samba/smbpasswd
Is there a better way to keep a running mirror of my apache/postfix server? Or should I stick with Rsync? Thanks!
rsync is perfectly sensible, and if you don't want the
performance hit (ssh is CPU intense) you can (good
enough network security assumed) do it with normal
transports.
Thanks for the reply. I think I'm just going to use NFS to mount the backup directories onto the primary server, and use rsync to keep those mounted directories synced.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.