LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2014, 10:54 AM   #1
tezarin
Member
 
Registered: Nov 2007
Posts: 126

Rep: Reputation: 0
How to back up *NIX boxes on a regular basis?


Hi all,

I'm a newbie with regards to the backup process. I started backing up the data on my Linux boxes but was wondering how I can start backing up the structure (other important) directories for each box. Something simple that I can manually do let's say once a week and be less worried about what if one of the servers become corrupted one day what should I do!

Two of these machines are SAMBA servers. How can I backup Just the directories with data, user accounts and the SAMBA config?

What other directories need to be backed up and could you please provide me with the commands? I would really appreciate it.


Mail server:
uname -a && cat /etc/*release
Linux servername 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 5.6 (Final)


Share server 1:
Linux servername 2.6.18-194.32.1.el5PAE #1 SMP Wed Jan 5 18:43:13 EST 2011 i686 i686 i386 GNU/Linux
CentOS release 5.5 (Final)


Share server 2:
Linux servername 2.6.18-194.32.1.el5PAE #1 SMP Wed Jan 5 18:43:13 EST 2011 i686 i686 i386 GNU/Linux
CentOS release 5.5 (Final)

The Samba servers have to stay separate for security purposes.
 
Old 02-21-2014, 01:28 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,096
Blog Entries: 10

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
From the perspective of a user/developer versus someone who maintains servers; here are the things I do and would practice given your situation.

Data

Data would be kept separate, using something like RAID drives, some method to protect that data from loss.

Operating System State

Likely your kernel is not changing; therefore the root file system is where any changes occur; such as changes to modules loading, their settings, user accounts, network settings, and so forth. Backing up your root file system can be done via a few means; using dd, using cp -a (into a target file system, file which you've mounted as -o loop.
 
Old 02-21-2014, 06:18 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
One common backup plan might be to take a golden image of the entire OS and new fresh setup with all users and no data. Then make some backup of the changes. Some people use rsync or other to more quickly maintain data. Some people create a cron job with a script and some out's to tell one of good or bad reports. Some applications work well too that can be automated.

In all cases, when you run some distributed data, you either have to have file locks on changes or stop all remote access during the backup or test of backup. There are some live state backups that could work.

It may be possible to use windows systems even to backup with.

Any backup is better than none generally.

Some people still do nightly tape backups with a tar command.

Last edited by jefro; 02-21-2014 at 06:20 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking to buy 1000+ pcs HP Compaq Dell regular basis OFFLEASE-RU LinuxQuestions.org Member Success Stories 2 07-21-2007 01:40 PM
How to Link two Nix boxes 1 cable modem ClericPreston Linux - Networking 2 11-25-2004 11:11 PM
Mailing a file on a regular basis Sn7 Linux - Software 4 07-19-2004 09:37 AM
can't get boxes back on Samba mehesque Linux - Networking 0 04-02-2004 07:14 PM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration