i am proceeding with system back up of my bubba2. i propose to submit this method of system backup to the "how to" section but first wanted to run it past the masses to see if it is sound.
well its almost a complete backup but i exclude some directories for convenience because i don't think they are necessary. and i only back up the main storage because i got the external bubba storage for this purpose.
the process is to use tar and gzip or tar and bzip2 which takes longer but gets higher compression.
my bubba 2 has a 1tb primary storage and a 1tb bubba external esata.
first i become root and then navigate to the external drive.
once i am on the external drive in the place i want the archive to be created i type
Code: Select all
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/home/storage/extern --exclude=/home/lost+found /
--exclude directs tar to exclude the directories /proc, /lost+found, /mnt, /sys, /home/storage/extern (because we only want to back up the system and main storage), /home/lost+found.
and then the final / tells tar to start the tar at the root of the file system.
or one can install bzip2 for higher compression and then one would enter...
Code: Select all
tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/home/storage/extern --exclude=/home/lost+found /
so when i want to restore the system i type... (if i used gzip)
Code: Select all
tar xvpfz backup.tgz -C /
Code: Select all
tar xvpfj backup.tar.bz2 -C /
Code: Select all
mkdir /proc, mkdir /lost+found, mkdir /sys, mkdir /mnt, mkdir /home/lost+found
i have a backup running now with bzip2 i expect it will take +24hrs to complete because my itunes library is 35gb. i expect i will get comments on this before the backup finishes running.
tell me what you think.
keep up the good work!