LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2004, 11:54 PM   #1
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
splitting tar output


Hi everyone ... still having issues with tar, much less than there once was.

Ok the story so far, piping a find to a tar, and writting a file to an NTFS partition on a Win2000 system. NTFS has 2GB file size limit, and hence there is a problem.

Win2000 can not be replaced with Linux and NFS (oh no, that's what was originally meant to happen).

Anyway, an additional requirement is that all of the things need to be logged (and that has been resolved [testing is still being done])

find / -follow -depth -mtime 1 ! -type d | tar --exclude=/mnt/wl_backup cjvpT - > /mnt/wl_backup/backup.tar.bz2 2> /mnt/wl_backup/log.log

so the problem is that /mnt/wl_backup/backup.tar.bz2 can't go beyond 2GB, but needs to, the boss recommends "use split"

problem is i can't seem to find anything that says how to split a piped tar input which is based on a find. Though there have been references to tar cjv - * | split -b 2m backup

Testing shows that iif i do a

find / -follow -depth -mtime 1 ! -type d | tar --exclude=/mnt/wl_backup cjvpT - > split -b 2147483648 /mnt/wl_backup/backup.tar.bz2

let alone fitting logging in on all of this ... though i suppose a 2> /mnt/wl_backup/log.log would do the trick.

Any help would be appreachiated.
 
Old 03-18-2004, 01:23 PM   #2
kernel_mustard
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
i feel your pain.
 
Old 03-21-2004, 09:08 PM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Original Poster
Rep: Reputation: 32
find / -follow -depth -mtime 1 ! -type d | tar --exclude=/mnt/wl_backup cjvpT - > split -b 2147483648 - /mnt/wl_backup/backup.tar.bz2 2> /mnt/wl_backup/log.txt

the - infront of the prefix is what was missing and that was all that was needed ...

**shaking heads** and i read the man page 3 times, and still someone had to point that out to me ....
 
Old 03-21-2004, 09:47 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
i read the man page 3 times, and still someone had to point that out to me
That's what man pages are for....
...apparently.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar and gzip - how do i point to a output directory RedHat123 Linux - Newbie 4 04-20-2011 10:48 AM
Suppressing the output from tar marri Programming 2 05-03-2005 03:19 AM
logging tar output chakkerz Linux - Newbie 2 03-09-2004 11:42 PM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration