Page 1 of 1

Backup the whole AMAHI Server -> which folder and files ?

Posted: Fri Aug 12, 2011 12:03 pm
by Frankster
Hi!

I am a total newbie about linux and so I have a lot to learn.

I want to backup my whole system

I am using rsync to backup the server

Code: Select all

rsync -av --delete --progress --exclude=/mnt/usb/ / /mnt/usb/hda/
And than rsync starts to backup /proc/kcore, and this file has 128TB :shock:

Thanks
Frankster

Re: Backup the whole AMAHI Server -> which folder and files

Posted: Fri Aug 12, 2011 6:50 pm
by ghstryder
Exclude it. It is a virtual file. If my understanding is correct, 128T would represent the theoretical maximum memory for Fedora.

Re: Backup the whole AMAHI Server -> which folder and files

Posted: Fri Aug 12, 2011 7:42 pm
by radioz
There are a lot of different strategies you can use for backup.
Mine is that if the system fails, its easy to re-install the OS but my data is critical.
My system is setup to just backup /var/hda/files.

If you plan to backup the entire system with rsync, I think you want to exclude a bit more than that.
Just a few ideas for directories to be excluded (hopefully others will chime in too):
/mnt
/media
/proc
/var/logs

...others...?

Re: Backup the whole AMAHI Server -> which folder and files

Posted: Mon Aug 15, 2011 12:39 pm
by Frankster
Hi!

At the moment i only backuped only the "var" directory

Thanks
Frankster

Re: Backup the whole AMAHI Server -> which folder and files

Posted: Mon Aug 15, 2011 1:41 pm
by radioz
If you find that your backup files are getting large, you might want to consider excluding /var/logs.

That directory contains a lot of (potentially large) log files that would be of no use if you are trying to recover your system.

/mnt and /media SHOULD be excluded because they may be links to large mounted file systems.