find . -depth -mount ! -name backup_crc.cpio | cpio --create --format=crc \ --force-local --verbose > 'backup_crc.cpio'To exclude a whole directory, e.g. /tmp, substitute the above find by
find . -mount -path './tmp' -prune -o -print(prune does not work with -depth)
find . -depth -mount ! -name backup_crc.cpio | cpio --create --format=crc \ --force-local --verbose | split -b1024m - 'backup_crc.cpio'
cat 'backup_crc.cpio' | cpio --extract --preserve-modification-time \ --make-directories --format=crc --force-local --verboseIn the case you splitted the archive, just do
cat 'backup_crc.cpio'.* | cpio --extract --preserve-modification-time \ --make-directories --format=crc --force-local --verbose
cat 'backup_crc.cpio' | cpio -tCRC check (does not show emtpy files, links, etc.):
cat 'backup_crc.cpio' | cpio --extract --only-verify-crc --verboseSome infos about cpio (in german) on Linux-Magazin
cd /; find . -mount -path './tmp' -prune -o -print | afio -o -v -Z -P bzip2 - | split -b1024m - /tmp/backup.afioDo a restore by
cat /tmp/backup.afio.* | afio -i -v -Z -P bzip2 -Incremental Backups - find files newer than a backup archive
find . -mount -path './tmp' -prune -o -newer /tmp/backup.afio -print | ...Alternative to split (directly)
find . -path './tmp' -prune -o -print | afio -v -Z -P bzip2 -o /tmp/hostname.backup.`date +%F`.afio > /tmp/hostname.backup.`date +%F`.log 2>&1Hint - do every backup as root!