Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-24-2006, 12:21 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Question 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.

Old 03-24-2006, 04:10 PM   #2
LQ Newbie
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Old 03-24-2006, 04:51 PM   #3
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
Old 03-24-2006, 04:56 PM   #4
LQ Newbie
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
backup files, tar, do i need to make a copy dtra Linux - Software 3 05-10-2005 09:52 PM
permissions on tar backup files durden2.0 Linux - Newbie 4 08-04-2004 12:50 AM
restoring /etc files from tar backup hdagelic Linux - General 1 09-24-2003 08:04 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 06:43 PM
backup/verify files with tar hokri Linux - General 0 11-27-2001 07:05 AM

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration