LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   User tar to create multiple backup files (https://www.linuxquestions.org/questions/linux-general-1/user-tar-to-create-multiple-backup-files-428053/)

Canmetal 03-24-2006 11:21 AM

User tar to create multiple backup files
 
Is there a way to specify the file size for the tar archive so that if a backup get's bigger than that it will create another file?

Thank you for your help on this matter.

Canmetal

Canmetal 03-24-2006 03:10 PM

The only way I could find to do it was to run 'split' after 'tar' to break the backup file into multiple 500MB files.

HTH someone else.

Canmetal

mikshaw 03-24-2006 03:51 PM

Another option is to check the size of the existing backup before creating a new one. I have no idea how your backup system works, but if it's a script then the check should be easy enough to add.

Canmetal 03-24-2006 03:56 PM

Thanks for your input.

All I do is call tar to create a file.tar.gz for the directory I wan to backup.

Then the file is copied to another computer and backed into DVD. My problem is that the other computer creates 650MB zip files, and when this tar file became 700MB it was not getting included in the backup. With split I can make sure it does.

I do not know how to check the future size of a tar file before creating it.

Thank you,

Canmetal


All times are GMT -5. The time now is 04:02 PM.