Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using TAR to create a split archive...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 392

PostPosted: Mon Oct 13, 2008 3:29 pm    Post subject: Using TAR to create a split archive... Reply with quote

I have read the man pages and I don't see anything that addresses the use of tar to create a split archive. Can this be done? I want to limit the size of my tarballs to 8gb so I can backup data to DVD-DL's.

I appreciate any help.

Thanks!
Dan
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Oct 13, 2008 3:37 pm    Post subject: Reply with quote

Code:
 -L, --tape-length N
              change tapes after writing N*1024 bytes
from `man tar` - that may work although I'm not sure about it - if not, you could use `split`, rar, 7z or the like.
Back to top
View user's profile Send private message
easy target
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2008
Posts: 134

PostPosted: Mon Oct 13, 2008 3:41 pm    Post subject: Reply with quote

I don't think it is possible. tar is about putting many files into one, not many :). You may want to look at dar.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Mon Oct 13, 2008 3:54 pm    Post subject: Reply with quote

just pipe tar's stdout to split, like
Code:
tar cvjf - /foo/bar | split -b 8000m - backup.tar.bz2.

or, as already said, use dar.

edit: fixed typo in command...
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum