Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-19-2004, 04:47 PM   #1
LQ Newbie
Registered: Jan 2003
Posts: 7

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


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

Old 10-19-2004, 06:54 PM   #2
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

find /mnt/tech -depth | cpio -v --create \
--format=crc > /mnt/test/backup
Then I checked the list ....
cpio --list < /mnt/test/backup
Both operations worked just fine.
Old 10-20-2004, 11:30 AM   #3
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?



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

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration