Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Slackware Current, RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 650
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.