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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-24-2004, 09:58 PM
|
#1
|
Member
Registered: Apr 2004
Location: phoenix,az
Distribution: red hat/suse
Posts: 54
Rep:
|
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?
|
|
|
10-24-2004, 11:10 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040
Rep:
|
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.
|
|
|
10-25-2004, 01:56 AM
|
#3
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
/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.
|
|
|
All times are GMT -5. The time now is 08:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|