LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   System backup. (https://www.linuxquestions.org/questions/linux-newbie-8/system-backup-54106/)

ETeria 04-08-2003 08:31 PM

System backup.
 
How can i make a backup of my system??? I have not any tape unit, i would like to put my backup in a file on a partition of a disc mounted on my machine, is it possible? Which are the most important system directories to save in the backup???

Tinkster 04-08-2003 08:53 PM

man tar :)

Tar would be the default tool,
as for importance: it depends on
what kind of distro you're running,
how much stuff you compiled up
from source, how much is pre-packaged
and configured to defaults by the installation...

If it's an RPM based bootable distro you
probably only want to backup your
/etc
/home
/root

:)

If it's lots of effort that you put into it
compiling stuff up also save the targets
of your installations, like eg
/opt
/usr/local

HIH

Cheers,
Tink

sinokonka 04-08-2003 10:42 PM

ok, you can use the ghost routine by Norton Utilities, and you can
backup it from "disk" or a "partition" to a single file *.gho.

another way, you can use the dd command under linux.

but I'd like use the ghost.
Hope this helps.

whansard 04-08-2003 11:48 PM

tar is good for quick single full backups

tar clfvz - . > /mnt/destination

dump is good for incremental backups, but only on
ext2
dump -0ua -f - /dev/hda1 | gzip -9 > /destination/dump.gz

dar is a good utility combining features of each
dar -z3 -v -s 2000M -c /destination/hda1.dar -A /mnt/hda1

you can use dd or cat to backup a whole partition,
but including the empty space

dd if=/dev/hda1 | gzip > /mnt/destination
cat /dev/hda1|gzip > /mnt/destination

ETeria 04-09-2003 06:18 PM

Thanks to all :) , i like the "tar" way.
Is possible to make a partial backup of a directory including some subdirectories and excluding other subdirectories???

whansard 04-09-2003 09:11 PM

yes, but you'll have to read the man page for that

tar clfvpz - directory > /destination.tgz

bornem 04-10-2003 09:14 AM

That won't be a problem with tar. Tar accepts wildcards.

eg:

tar -cvzf /path/newfile.tgz /path/filename /path/dir* etc.. etc..

Martin


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