-   Linux - General (
-   -   important system files backup (

manishrmusale 06-07-2011 08: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 08:14 AM

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.

onebuck 06-08-2011 08: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 04:55 PM.