LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-08-2006, 02:20 PM   #1
Lotharster
Member
 
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
Code:
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?

Thanks,

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

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
-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.


Cheers,
Tink
 
  


Reply


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


All times are GMT -5. The time now is 10:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration