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.
Hi, i have the task of making backups from different servers and i wanted to know from anyones experience what files/folders should i backup? The server i'm talking about include:
- Asterisk Server
- Web Server (Apache, MySQL, PHP)
- Mail (Postfix)
- And a Firewall.
What should i copy to my backup server from each one of the servers above? Including the configurations files from linux that may be important. Thanks for any answer i may get!
I would definitely backup the data (ie: the website that apache is serving, the mail that postfix is accepting, etc.)
apache may be located /var/www or /srv/www
postfix mail may be located /var/mail or something similar.
I don't know where mysql or php stuff may be located.
Firewall likely will be a script in /etc/rc(something)
backup the /etc/apache(whatever)
backup the /etc/postfix/(whatever)
and anything else you can find for mysql and php.
That's all I can recommend. Have a good plan. Test it.
thanks for your answer. I've been reading a lot about backup in linux and i found about bacula and i'm thinking about implementing this one. Am i going in the right direction with this software? I dont have the amount of space to backup the whole server but i would like to know how can i do that? what software should i use? Thanks for guiding me on this one!
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
Actually, for MySQL, you want Zmanda Recovery Manager for MySQL. There was a review of it in the recent edition of Linux Journal, and you can find a link about 2/3 of the way down on this page of links: http://www.linuxquestions.org/bookmarks/tags/backup.
What filesystem do you use. On a recent twit FLOSS episode the lead programmer for drizzle recommended performing a flush and then an LVM snapshot or ZFS snapshot for live backups. That way you perform the same procedure to backup the database as you do for the application server. The XFS file system can perform a backup with xfsdump.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
Snapshots are not a cure-all for database backups. I use fssnap on Solaris 9 with ufsdump in a wrapper I wrote that is called by Amanda. This is a major improvement on simply having Amanda call ufsdump. However, you still want to use proper procedures for databases. Zmanda Recovery Manager for MySQL does that. It manages both full and incremental backups to disk using appropriate procedures - http://www.zmanda.com/backup-mysql.html. Then, if you use Amanda for your general backups, it can process those out to tape.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.