LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2004, 08:58 PM   #1
vswr31
Member
 
Registered: Apr 2004
Location: phoenix,az
Distribution: red hat/suse
Posts: 54

Rep: Reputation: 15
Angry Back ups


I was tinkering with the tar and cpio commands on my personal system in order to back the contents of my /home directory.
I have a drive on my computer that i just use for storage so the tar command I used was
tar cf /home /dev/hdb
It seemed to work but failed when I attempted to restore the data, I was not able to view the archive from the command line or the GUI when I went to the mount point of the drive.

for cpio I used the following....
find /home -print | cpio -o /dev/hdb
again it seemed to work but I was not able to view the resulting archive and the restore command
cpio -idv < /dev/hdb seemed to work with no errors but I tried to restore it in a spot so I could actually see the entire directory structure.
Any suggestions?
 
Old 10-24-2004, 10:10 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I sometimes use tar to back up and I have to do it this way:

tar -c -v -f /path_of_output (archive)_file /path_of_what_I_want_to_backup/*

Versions of tar differ, but I think this is pretty much required no matter what version you use. With my system, specifying a device rather than a path would not work, and I do have to specify the location for the archive file, and then the location of the stuff I want to work with.
 
Old 10-25-2004, 12:56 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
/dev/hdb is a very general term. If there is a partition there, it has a number (1, 2, etc). Try running it again, but this time, complete the command: /dev/hdb1, /dev/hdb2, whatever the partition number is.
If you are not sure of the number, check /etc/fstab. It should be there.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apc Back-ups 650 a10392 Linux - Software 1 12-03-2004 10:51 AM
apc Back-ups a10392 Debian 1 12-03-2004 10:24 AM
Wierd problem with APC Back-UPS ES500 jtshaw Linux - Hardware 0 01-10-2004 09:39 AM
trouble using dd for remote back ups Jason Foat Linux - Networking 1 05-21-2002 02:05 PM
Trouble using dd for remote back ups Jason Foat Linux - Newbie 0 05-21-2002 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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