LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 06-07-2011, 07:01 AM   #1
manishrmusale
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: 0
Question important system files backup


Dear Team,

Kindly help out, when I have need change my server hardware, for precaution purpose need to take important file backup, any one tell me that all information.
 
Old 06-07-2011, 07:14 AM   #2
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
mount a stick or external hard-disk at /media/backup,
make sure its big enough. ( `df -ahl` )

Code:
rsync -auv \
--exclude="/home/*" \
--exclude="/proc/*" \
--exclude="/lost+found/*" \
--exclude="/dev/*" \
--exclude="/mnt/*" \
--exclude="/media/*"  \
--exclude="/sys/*" \
--exclude="/tmp/*" \
/ /media/backup
That should be it.

You can use the -n switch for a dry run.
Code:
rsync -auv -n 
...
...
/ /media/backup > dry.txt.
Look at dry.txt, if all is well. If yes go for the real run.
(double check if you really got your backup-device mounted).

Keep this file in mind in case you run into trouble:
/etc/udev/rules.d/70-persistent-net.rules
(if no net: either remove it and reboot or edit it manually).

There might be better ways. That's what i do, and it works.

Last edited by j1alu; 06-07-2011 at 07:25 AM.
 
Old 06-08-2011, 07:24 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moved: This thread is more suitable in <Linux-General> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best file system to backup files Penguin Community Linux - Hardware 2 05-10-2009 04:36 AM
How to backup /home except hidden/system files glenn69 Linux - General 3 05-16-2007 09:46 AM
Script to backup system files Kristijan *BSD 3 10-01-2006 04:51 AM
Deleting backup files in my system. hgb Linux - Software 6 11-07-2005 12:15 AM
most important to backup? mnauta Linux - General 4 01-21-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 PM.

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
Open Source Consulting | Domain Registration