LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-08-2003, 08:31 PM   #1
ETeria
Member
 
Registered: Mar 2003
Location: Monza (MI)
Posts: 65

Rep: Reputation: 15
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???
 
Old 04-08-2003, 08:53 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 04-08-2003, 10:42 PM   #3
sinokonka
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Rep: Reputation: 0
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.
 
Old 04-08-2003, 11:48 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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
 
Old 04-09-2003, 06:18 PM   #5
ETeria
Member
 
Registered: Mar 2003
Location: Monza (MI)
Posts: 65

Original Poster
Rep: Reputation: 15
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???
 
Old 04-09-2003, 09:11 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
yes, but you'll have to read the man page for that

tar clfvpz - directory > /destination.tgz
 
Old 04-10-2003, 09:14 AM   #7
bornem
LQ Newbie
 
Registered: Apr 2003
Location: Ottawa, Canada
Distribution: RedHat
Posts: 8

Rep: Reputation: 0
That won't be a problem with tar. Tar accepts wildcards.

eg:

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

Martin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using a system backup Shavo Linux - Newbie 1 06-22-2005 04:43 AM
Backup of the system enemorales Linux - Newbie 2 01-05-2005 07:08 AM
system backup. vcheah Linux - Software 1 01-24-2004 02:20 AM
System Backup linuxtom Linux - General 2 09-17-2003 10:28 AM
backup of system !! hitesh_linux Linux - Software 6 10-08-2002 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration