4
i am using the following command to backup and sql file:
tar -zcvf "$BACKUP_DST/$FILE_NAME.tgz" "$BACKUP_DST/$FILE_NAME.sql"
i want to make sure the compressed file wont be larger then 300mb, if it exceeds 300mb, split it into several files.
any thoughts?
dar sounds interesting, how would i run this command in dar? – Ran – 2011-07-14T16:09:17.350
how about using tar with --tape-length and -M ? – Ran – 2011-07-14T16:12:38.770
I added an example
dar
command. I just tested--tape-length
and it doesn't work with compressed archives, repeatedly overwrites the same .tar file without changing the name, and requires you to hit ENTER after each "slice". – None – 2011-07-14T16:22:48.590