LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-19-2004, 03:47 PM   #1
bobsmith
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
using cpio to create hard drive backup file


Hello,

I've been running Redhat 8.0 on an HP box with standard services like web and ssh, for more then a year. I would like to back up the machine (4gigs < data <10gigs) in any practical way. I have an external USB 120 gig hard drive mounted with a 20 gig linux partition formatted (mke2fs -T largefile4 /dev/sda3). After creating a custom file list to back up, I use the command:

# cat file.list | cpio -o --format=crc > full-backup.cpio

All seems well:

-rw-r--r-- 1 root root 6170300928 Oct 19 13:06 full-backup.cpio

To test my backup, I'm trying to create a file list to diff with the input list, and maybe pull out a sample file to check. When I do the following, I get and error:

# cpio -i --list --format=crc < full-backup.cpio > output.list
cpio: standard input is closed: Value too large for defined data type

and the output.list file is empty.

Any thoughts on how to fix? Any thoughts on a better backup solution? Having auto-backups would be great too

Bob
 
Old 10-19-2004, 05:54 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I use partimage to make backups with but I did try cpio to see what kind of problem you might be having. I didn't put any extensions on the file name but I don't know if that matters. Here's what I did and you can look to see if anything clicks.

mkfs.ext3 /dev/hda2
mkdir /mnt/test
mount /dev/hda2 /mnt/test

Code:
find /mnt/tech -depth | cpio -v --create \
--format=crc > /mnt/test/backup
Then I checked the list ....
Code:
cpio --list < /mnt/test/backup
Both operations worked just fine.
 
Old 10-20-2004, 10:30 AM   #3
bobsmith
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your reply.

I set up a test of mine own and it works fine for just a few files with a few bytes in them. Can someone help me with backing up 78666 files that total about 20 gigs?

Thanks,
Bob
 
  


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
Full Backup With Cpio! grim2 Linux - General 6 02-09-2012 06:43 AM
hard drive failing, how can I create an image of my drive? oily_rags SUSE / openSUSE 6 07-07-2005 02:19 PM
Hard drive/System backup ksgill Linux - Newbie 2 11-11-2004 02:10 AM
Hard Drive Backup Boffy Linux - Software 4 10-19-2004 01:38 PM
Using cpio to backup to CDROM Cyberhund Linux - Newbie 3 07-21-2004 01:49 PM

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

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