Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-08-2003, 09:31 PM
|
#1
|
Member
Registered: Mar 2003
Location: Monza (MI)
Posts: 65
Rep:
|
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???
|
|
|
04-08-2003, 09:53 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
04-08-2003, 11:42 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Rep:
|
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.
|
|
|
04-09-2003, 12:48 AM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
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
|
|
|
04-09-2003, 07:18 PM
|
#5
|
Member
Registered: Mar 2003
Location: Monza (MI)
Posts: 65
Original Poster
Rep:
|
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???
|
|
|
04-09-2003, 10:11 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
yes, but you'll have to read the man page for that
tar clfvpz - directory > /destination.tgz
|
|
|
04-10-2003, 10:14 AM
|
#7
|
LQ Newbie
Registered: Apr 2003
Location: Ottawa, Canada
Distribution: RedHat
Posts: 8
Rep:
|
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 04:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|