LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using cpio to create hard drive backup file (https://www.linuxquestions.org/questions/linux-newbie-8/using-cpio-to-create-hard-drive-backup-file-244778/)

bobsmith 10-19-2004 03:47 PM

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

homey 10-19-2004 05:54 PM

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.

bobsmith 10-20-2004 10:30 AM

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


All times are GMT -5. The time now is 03:58 PM.