View previous topic :: View next topic |
Author |
Message |
dspahn Guru
Joined: 22 Jun 2006 Posts: 392
|
Posted: Mon Oct 13, 2008 3:29 pm Post subject: Using TAR to create a split archive... |
|
|
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 |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Mon Oct 13, 2008 3:37 pm Post subject: |
|
|
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 |
|
|
easy target Tux's lil' helper
Joined: 09 Jan 2008 Posts: 134
|
Posted: Mon Oct 13, 2008 3:41 pm Post subject: |
|
|
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 |
|
|
gimpel Advocate
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Mon Oct 13, 2008 3:54 pm Post subject: |
|
|
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 |
|
|
|