I don't know anything about Unix/Linux. I am primarily a web programmer.
I am running the following command in my code:
exec("tar -caf '/backups/_structure.tar.gz' --ignore-failed-read -C /source .");
This code makes a file backup of all the contents of my /source
directory and stores it in the /backup
directory. This code works fine, except for the fact that sometimes my files are HUGE.
I would like to split the tar file by 100MB segments. In this single line, what would I add to do that? I've read some things about | split -b 100MB
, but I don't know where in the line to put it and I'm very confused.