LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-18-2007, 08:32 PM   #1
hewittrj
Member
 
Registered: Mar 2007
Posts: 83

Rep: Reputation: 15
Using TAR


I need help.

Here is what I have:
Fedora 7
Adaptec 2940uw
Wangdat 3400DX

I need to be able to TAR some directories and then restore them after I finish some major hardware changes to my Fedora 7 Desktop/server

I use this system as a desktop and also as a file server nothing really fancy, but I managed to max out the original drives and plan to upgrade to larger Drives. The problem I have is that I need to backup some files so that I can do this without loosing them.

the directories are as follows

1. /Storage/Music
2. /Storage/Movies
3. /Storage/Videos

I want to make independent backups of all these directories, meaning that I need to backup each dir and then restore them seperately.
What is the best command for to backup to tape and then what is the command to restore from tape when I get done doing upgrades to F7 box.

I keep looking at the TAR man pages and the local lug group are to vauge for me to truely understand. Pleas keep the descreption as simple as possible seeing as I am still kinda new to Linux and to the TAR command.


RObert
 
Old 07-18-2007, 08:55 PM   #2
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
tar cf MyFileName.tar /Storage/Music/*
tar cf MyFileName.tar /Storage/Movies/*
tar cf MyFileName.tar /Storage/Videos/*
 
Old 07-18-2007, 09:17 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by ghostdev85
tar cf MyFileName.tar /Storage/Music/*
tar cf MyFileName.tar /Storage/Movies/*
tar cf MyFileName.tar /Storage/Videos/*
This example is for producing tar files and not backing up to a tape. Also using /Storage/Music is enough to backup the Music directory. The command would look more like this:
Code:
 tar cf /dev/rmt/0  /Storage/Movies/*
However, you want to read the tar info manual. I don't have a tape device, and am not versed in using one. I also don't know what tape drive you use and if a different device name is used.

Also, since Fedora Core uses SELinux, read their documentation on tar. Is it a newer version that handles acls and security contexts? If not, you may want to use the "star" program instead.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
tar | ssh (tar > .tar) syntax issues EarlMosier Linux - Software 6 12-21-2006 12:28 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:31 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