Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-08-2006, 01:20 PM   #1
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
backup with tar: which options?

I want to backup my whole system (debian sarge) using tar archives. As far as I know, I can just backup my data using
tar cfzvp bootbackup.tar.gz /boot
to backup my whole boot folder. System folders like /proc or /sys, as well as /tmp, need not be backed up. I will also backup my master boot record and partition table. (I'll do all this backup stuff using a live CD, not on a running system)

However, I'm not perfectly sure how tar handles symbolic links. If I understabd the man page correctly, it normally just archives a link which poits to the original file. That should be OK when I archive the entire disk, right?

Will this approach allow me to fully restore my system later on?


Old 06-08-2006, 01:32 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
-p only impacts EXTRACTION, -v slows the process down by outputting
archived files to stdout, other than that you'll be fine :}

And you should get in the habit of checking the order of options,
just in case you ever have two that take an argument. ;}

tar czf bootbackup.tar.gz /boot
is a good starter.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Backup options kkiedrowski Slackware 5 12-13-2005 10:44 AM
Backup options jrdioko Linux - Software 2 11-28-2004 12:11 AM
Backup Options? Snump Linux - Hardware 7 10-02-2004 09:34 PM
tar options dennis_89 Linux - General 7 06-23-2004 12:23 PM
Server Backup Options? Rackemup Linux - General 4 05-24-2001 06:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

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