Quote:
Originally posted by ehdwuld
yes it is a desktop
and i would appreciate knowing how to back up my my directories
thank you
|
One way to backup your home directories is like so:
Code:
cd /home
tar -c ./USER | bzip2 -z --best > /path/to/backup/directory/USER.tar.bz2
md5sum /path/to/backup/directory/USER.tar.bz2 > /path/to/backup/directory/USER.tar.bz2.md5
or just
Code:
cd /
tar -c ./home | bzip2 -z --best > /path/to/backup/directory/home.tar.bz2
md5sum /path/to/backup/directory/home.tar.bz2> /path/to/backup/directory/home.tar.bz2.md5
to backup all home directories.
If you want to back them up to a remote machine there are as many ways to do that as there are to do it locally.
The easiest (my opinion) is to have sshd running on the target machine you want to dump the backup to. Make sure the system has a LOT of free space.
Then do this:
Code:
mount | grep 'on / '
Spaces DO matter. That should tell you what your / parition is. If it says
/dev/hda3 for example, you'll use
/dev/hda
Now take Knoppix, a Fedora Core 4 cd or whatever makes your day and boot from it. I do not know about Fedora Core 4 but I'm sure it has an option to boot into a "rescue" mode (FC1 has it). Get to a shell and execute the following:
We're going to pretend that
/dev/hda is your root device
Code:
cat /dev/hda | ssh yoursystem.example.com "bzip2 -z --best - | cat > yoursystem.example.com.bz2"
That puts the load of compressing the data on the remote system. If the system you're backing up is more powerful than the remote, then use this:
Code:
cat /dev/hda | bzip2 -z --best - | ssh yoursystem.example.com "cat > /backup/directory/yoursystem.example.com.bz2"
To restore it (in case you want to roll back), you can do this:
Code:
ssh yoursystem.example.com "cat /backup/directory/yoursystem.example.com.bz2 | bzip2 -d" | cat > /dev/hda
Again, if your system that you're backing up is more powerful, use this instead:
Code:
ssh yoursystem.example.com "cat /backup/directory/yoursystem.example.com.bz2" | bzip2 -d | cat > /dev/hda
There is a faster way to do the above using netcat instead of ssh but I've yet to try it out.
What looks to be a good article on it is available here:
http://www.rajeevnet.com/hacks_hints...s_cloning.html
If you go that route and it works well let us know.
There is also a pretty good app out there you may want to look at:
http://www.partimage.org/