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