Create Tar file in unix and split it to smaller segments
Posted on 2014-09-04
I need to split a large tar file for backup purposes on a unix system. I need to tar the /u/appl directory and then split into chunks less the 2gb in size. The following command is what I'm using now, but I get an error "Split: cannot open input".
tar cvf - /u/appl | split -b 1500m /u/backup/appl.backup.tar.gz
I'm sure there's a syntax error, as I can run the tar command by itself with no issue. I've tried to resolve but haven't been able to.