Pipe the output to split(1)'s standard input (i.e. the "dash").ccc said:Is it any way to split the output to many backup files?
Do not use the final > /mnt/backup_usr.gz. Use - /mnt/backup_usr.gz_ instead. And split(1) supports gigabytes so -b 1g should work. The underscore is used for more clarity.ccc said:Thx, but ist it correct this command to backup the whole /usr partition and split into 1GB files?Code:# cd / ; find ./usr -depth -print -xdev | cpio -ovfB | gzip -c | split -b 1000m > /mnt/backup_usr.gz &
# cd / ; find ./usr -depth -print -xdev | cpio -ovfB | gzip -c | split -b 1g - /mnt/backup_usr.gz_