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 a web server on my network here, and its always on hosting a few sites, about 5, and a few user accounts for file storage etc. For backups i used to just copy the files onto my dekstop machine and make backups that way, but the more the server is growing the more of a pain its beginning to get! I just put another linux box on my network, just a clean fresh install of ubuntu server, So i was wondering is there any scripts or programs where i could backup the home directory/MySql databses/apache config/the apache www folder (any other important things im missing?) onto the new server i put in, basically make this just a backup server? Is this possible?
That link looks promising enough, onlt thing is say i do a backup using this, and my server fails completely, i re-install ubuntu fresh, and do a restore, would the server be back the way it was before? or would the new install cause problems?
I love to read about diligent backer-uppers. Yes there are a few programs you can use to accomplish this. Depending on your level of comfort, i will outline a few options for you.
1. Rsync, Webmin, AutomysqlBackup:
II. You can use Rsync to copy files to destination automatically
III. You can use Webmin to backup all your configuration files
IV. you can use AutoMySQLBackup to automatically make daily, monthly, and weekly copies of your SQL databases, this is a very simple script, which i can provide to you.
2. Incremental Backups using a more complex Sceme:
II. Follow this great How To using Rsync:
6. SSH+Tar scripts:
II. In this method the contents of the backup travel (compressed) across the network, but through ssh. You can choose to backup any part (or all) of a filesystem. This is also useful if you have run out of space on a machine that needs backing up - this method doesn't require an intermediate tar file to be stored on the harddrive.
III. More complicated method, but i can provide assistance
These are just a few of your options, please let me know if you need anymore info
If you're into scripting (or want to become so) I just found the benefits of a program called "Expect" -- It comes with Redhat/Fedora Core...not sure about ubuntu -- In an evening you can have it backing up files automatically to your backup server using FTP (or any other method you want).
Check out "#man expect" and see what you can find out. There's also "#man autoexpect" which will generate a script by 'watching' your session.
I just created a script and put it into crontab so it runs daily.
IV. you can use AutoMySQLBackup to automatically make daily, monthly, and weekly copies of your SQL databases, this is a very simple script, which i can provide to you.
I really would be interested in this. I don't know too much about mysql, but my intranet runs off of it, so I know that backups are definitely needed in this case.
i agree with chrism01, i do daily, weekly, and monthly backups. The backups are not going to be that large, mine are about 40megs, and you can never EVER have too many backups.
Hey all,
For backups, I found this works for my purposes.
All servers are mounted via NFS to my backup server.
I wrote a script for each server (generic except for different directories listed). the script simply tar zips locally on the backup server the contents of all directories from all the networked servers I listed.
I do this every night, and keep 2 days backup / month / year. Excessive I know, but as you see, never have too many backups.
If there is a failure in the backup, check $? after running tar, I get an email that the back up failed, and I can check it quickly. But now I still have yesterdays backup.
Josh
My favorite is when people start backing up their data, after they lost it all. Smart.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.