LinuxQuestions.org
Register a domain and help support LQ
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-17-2004, 12:54 AM   #1
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

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, 02:23 PM   #2
kernel_mustard
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
i feel your pain.
 
Old 03-21-2004, 10:08 PM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

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, 10:47 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
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


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 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 03:48 AM
tar and gzip - how do i point to a output directory RedHat123 Linux - Newbie 4 04-20-2011 11:48 AM
Suppressing the output from tar marri Programming 2 05-03-2005 04:19 AM
logging tar output chakkerz Linux - Newbie 2 03-10-2004 12:42 AM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 08:44 PM


All times are GMT -5. The time now is 03:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration