On 08/12/16 20:27, Greg Freemyer wrote:
On Thu, Dec 8, 2016 at 11:23 AM, Anton Aylward <opensuse@antonaylward.com> wrote:
Yes 'find' + 'cpio' can be very flexible!
Check the man page for 'rmt'. If you're going to/from tape, add buffer or mbuffer to the toolbox. It sits between cpio and the tape drive and helps ensure data is fed to the tape in appropriate size chunks.
Of the 2, I like mbuffer: http://www.maier-komor.de/mbuffer.html
The last source tarball is from just last month, so it is still maintained:
http://www.maier-komor.de/software/mbuffer/mbuffer-20161115.tgz
And it is part of openSUSE for at least the last 7 or 8 years. 10+ years ago I had to compile it myself.
Greg -- Greg Freemyer
Hi All, I appear to have solved it this time! I found a workaround from this page (answer #40) http://stackoverflow.com/questions/9084257/bash-array-with-spaces-in-element... I have my array (my ISOs in this case): files[0]="/srv/media/PS2 Games/" files[1]="/srv/media/PS1 Games/" then I have my loop: file_list="" #use variable $file_list for file in ${files[@]}; do file_list="$file_list \"$file\"" done specifically I replaced: for file in ${files[@]}; do with: for file in "${files[@]}"; do Without the quotes as above the output of the loop ($file_list) was this: (treating the spaces as separate array items): "/srv/media/PS2" "Games/" "/srv/media/PS1" "Games/" Now the quotes are added I get as I expected: "/srv/media/PS2 Games/" "/srv/media/PS1 Games/" It was very strange though because if I put in a file name instead of a directory the problem did not seem to affect the files with spaces?? Maybe a bug or just a quirk... I have just set off a test backup and will see if it makes it to the end OK. P.S. Talking about bash on an off-topic but interesting/worrying note, I just re-installed a mac-book for someone onto Mac OS Sierra (downloaded from the app-store on Wednesday) and the version of bash supplied in the image is still version 4.3 before the "shellshock" bug was patched (over 2 years out of date!!). (Made me laugh/cringe a little :P). Although it did immediately update to the latest Version once I connected to the WiFi. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org