LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   splitting tar output (https://www.linuxquestions.org/questions/linux-newbie-8/splitting-tar-output-158785/)

chakkerz 03-16-2004 11:54 PM

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.

kernel_mustard 03-18-2004 01:23 PM

i feel your pain.

chakkerz 03-21-2004 09:08 PM

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 ....

2damncommon 03-21-2004 09:47 PM

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.
:D


All times are GMT -5. The time now is 10:32 PM.