Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


Search this Thread
Old 06-07-2011, 08:01 AM   #1
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, 08:14 AM   #2
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` )

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.
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:
(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 08:25 AM.
Old 06-08-2011, 08:24 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,390
Blog Entries: 3

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


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 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 05:36 AM
How to backup /home except hidden/system files glenn69 Linux - General 3 05-16-2007 10:46 AM
Script to backup system files Kristijan *BSD 3 10-01-2006 05:51 AM
Deleting backup files in my system. hgb Linux - Software 6 11-07-2005 01:15 AM
most important to backup? mnauta Linux - General 4 01-21-2004 05:30 PM

All times are GMT -5. The time now is 03:48 PM.

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