1748123 Members
3401 Online
108758 Solutions
New Discussion юеВ

cpio

 
Isaac Mejia
New Member

cpio

HI:
Can you help me? I need a to do an incremental backup using no-rewind devices.
Today I?m using the next command:

1.- # ll | cpio -ocdumvB>/dev/rmt/0mn
2.- # ll | cpio -ocdumvB>/dev/rmt/0mn

where DIR1 and DIR2 are any directory and DIR1!=DIR2.

I'm rewinding the tape using "mt -t /dev/rmt/0mn rew" command

I'm listing the content using "cpio -icvt

Can you indicate what is wrong??

Thanks.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: cpio

Hi,

I think this is what you need to do:

For your full backup

find /dir1 -print | cpio -ocvB > /dev/rmt/0mn

To backup files modified in the last day:
find /dir1 -mtime -1 | cpio -ocvB > /dev/rmt/0mn

Man find for details about how to use the -mtime -days options.

Regards, Clay

If it ain't broke, I can fix that.
Carlos Fernandez Riera
Honored Contributor

Re: cpio

cpio -ocdumvB>/dev/rmt/0mn # WRITE

# mt -t /dev/rmt/0mn rew
#cpio -itvcB < /dev/rmt/0mn # list
#cpio -itvcB < /dev/rmt/0mn # list




unsupported
Plamen SIMEONOV
Advisor

Re: cpio

I will extend the answer of Carlos:
find /DIR1 /DIR2 -print | cpio -oBcv > /dev/rmt/0mn

In this case on the tape will exists only one CPIO file (DIR1 and DIR2 inside) and the test will be:
cpio -iBt < /dev/rmt/0m

Plamen