LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-24-2006, 11:21 AM   #1
Canmetal
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.

Canmetal
 
Old 03-24-2006, 03:10 PM   #2
Canmetal
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.

Canmetal
 
Old 03-24-2006, 03:51 PM   #3
mikshaw
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, 03:56 PM   #4
Canmetal
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,

Canmetal
 
  


Reply


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 08:52 PM
permissions on tar backup files durden2.0 Linux - Newbie 4 08-03-2004 11:50 PM
restoring /etc files from tar backup hdagelic Linux - General 1 09-24-2003 07:04 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 05:43 PM
backup/verify files with tar hokri Linux - General 0 11-27-2001 06:05 AM


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

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