LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2003, 05:55 PM   #1
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Rep: Reputation: 0
using tar on filesystem


Can "tar" be used on whole filesystems? If it can,
then how would i do it? i looked at the man pages but dont really
understand the syntax when using "tar -M" Anyhelp would be
appreciated and thank you in advance!
 
Old 08-25-2003, 06:09 PM   #2
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
you mean like just tarring / ?
 
Old 08-25-2003, 06:12 PM   #3
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
that is exactly what i mean! do i just have to
"tar -cvf / " or is it more complicated than that
 
Old 08-25-2003, 06:18 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
If you have the space, AFAIK you can tar your whole filesystem. If you select your / partition, that will thus backup everything since everything is under "/"
 
Old 08-25-2003, 06:22 PM   #5
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
if i defined a couple of different file systems
like /, /usr, /var. all i would need to do is "tar -cvf /" and that
would back up all the file systems (/usr , /var and whatever else
i have) thanks in advance
 
Old 08-25-2003, 06:37 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Yeah, say for example I have my html documents in /var/www and when I do a complete backup of my documents for my website, I can specify that directory, /var/www
 
Old 08-25-2003, 06:39 PM   #7
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
thanks for the help
 
Old 08-25-2003, 10:00 PM   #8
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
My preferred method is tar pcjf archive.tar.bz2 /

Preserves ownership flags as well as symlinks too
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
Recovering tar files burnt to cd without a filesystem?? mazinoz DamnSmallLinux 2 11-22-2005 06:47 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 11:35 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM

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

All times are GMT -5. The time now is 08:37 PM.

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