Packing and compressing directories to an archive in USB, but writing only N GB at once, then paused?
by zimon from LinuxQuestions.org on (#5GQEH)
So if one wants to archive large tree-structure and split it to eg. 60 GB files, one can do:
Code:tar cJf - /home/user/hugedir | split -b 60G - /mnt/usb64g/hugedir.tar.xz.But let's assume, the /mnt/usb64g is a NTFS/exFat usb stick of size 64 GB and the /home/user/hugedir is size 256 GB. Let's also assume, there is no enough space in local hard drives to do it there first and then transfer it part by part to 64 GB USB-stick, which is then used to copy file to an another PC.
The purpose is to transfer this hugedir to another machine by the 64 GB USB-stick, part by part. No network. (No fancy USB3.0 USBA - USBA cable, which I Googled could be possible but usually is not.)
Is there any more suitable program but tar+split which would have a pause between writing the chunks? Ideally split-program would have some --pause option, which when have written one chunk, would wait for user keypress before starting to write next one.
tar has -L option, but it not suitable when compression is used.


Code:tar cJf - /home/user/hugedir | split -b 60G - /mnt/usb64g/hugedir.tar.xz.But let's assume, the /mnt/usb64g is a NTFS/exFat usb stick of size 64 GB and the /home/user/hugedir is size 256 GB. Let's also assume, there is no enough space in local hard drives to do it there first and then transfer it part by part to 64 GB USB-stick, which is then used to copy file to an another PC.
The purpose is to transfer this hugedir to another machine by the 64 GB USB-stick, part by part. No network. (No fancy USB3.0 USBA - USBA cable, which I Googled could be possible but usually is not.)
Is there any more suitable program but tar+split which would have a pause between writing the chunks? Ideally split-program would have some --pause option, which when have written one chunk, would wait for user keypress before starting to write next one.
tar has -L option, but it not suitable when compression is used.