[Mimedefang] backup quarantine directory, large number of fil es.

Cormack, Ken kcormack at acs.roadway.com
Thu Apr 29 13:11:03 EDT 2004


> What method have you used to backup upwards of 30K directories in a
> directory, on linux?

I'd use cpio...

# cd /var/spool/MD-Quarantine

cpio to an on-disk archive...
# find . -depth -print | cpio -ocvB > /tmp/backup.cpio

cpio to a tape device...
# find . -depth -print | cpio -ocvB > /dev/devicename

To restore the whole thing, use this syntax...
# cd /var/spool/MD-Quarantine
# cpio -icvdumB < /tmp/backup.cpio
or
# cpio -icvdumB < /dev/devicename

To restore a select file or directory...
# cpio -icvdumB "dirname/filename" < /tmp/backup.cpio

...and so on.

KEN CORMACK, RHCE
Sr. UNIX Systems Analyst,
    Open Systems Group
Sr. Software Analyst,
    TSG Midrange Systems Group
AFFILIATED COMPUTER SERVICES, INC.

"If that that is 'is' is that that is not 'not is', is that that is 'not is'
that that is not 'is'?  It is!" - Ken Cormack

"Sendmail administration is not black magic.  There are legitimate technical
reasons why it requires the sacrificing of a live chicken." - Unknown



More information about the MIMEDefang mailing list