LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   important system files backup (http://www.linuxquestions.org/questions/linux-general-1/important-system-files-backup-884971/)

manishrmusale 06-07-2011 07:01 AM

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.

j1alu 06-07-2011 07:14 AM

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.

onebuck 06-08-2011 07:24 AM

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


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