Re: recursive copy with spaces in descendants

2011-11-08 Thread Chris Whitehouse
On 05/11/2011 19:47, Chris wrote: I'm having difficulty copying a directory tree from my FreeBSD server to USB storage. The problem is that the tree contains file and folder names which have spaces, similar to the following: ./foo bar/some name.tar.gz ./foo bar/child dir/some other name.tar.gz

Re: recursive copy with spaces in descendants

2011-11-06 Thread Polytropon
On Sat, 5 Nov 2011 15:47:20 -0400, Chris wrote: I'm having difficulty copying a directory tree from my FreeBSD server to USB storage. The problem is that the tree contains file and folder names which have spaces, similar to the following: The thing you're intending to name are properly called

Re: recursive copy with spaces in descendants

2011-11-06 Thread Michael Sierchio
On Sun, Nov 6, 2011 at 6:35 AM, Polytropon free...@edvax.de wrote: However, if you _can_, solve the _cause_ of your problem, i. e. educate those who create that kind of trouble-carrying file and directory names _not_ to use spaces! Amen, Brother. Just because you *can*, doesn't mean you

Re: recursive copy with spaces in descendants

2011-11-06 Thread Ian Smith
In freebsd-questions Digest, Vol 387, Issue 10, Message: 34 On Sat, 5 Nov 2011 18:49:29 -0400 Chris cpubur...@gmail.com wrote: On Sat, Nov 5, 2011 at 6:20 PM, Michael Sierchio ku...@tenebras.com wrote: On Sat, Nov 5, 2011 at 3:15 PM, Chris cpubur...@gmail.com wrote: I apologize for the

recursive copy with spaces in descendants

2011-11-05 Thread Chris
I'm having difficulty copying a directory tree from my FreeBSD server to USB storage. The problem is that the tree contains file and folder names which have spaces, similar to the following: ./foo bar/some name.tar.gz ./foo bar/child dir/some other name.tar.gz I've tried various combinations of

Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
I just use tar for this. ( cd /path/to/src ; tar cf - . ) | ( cd /path/to/obj ; tar xf - ) - M On Sat, Nov 5, 2011 at 12:47 PM, Chris cpubur...@gmail.com wrote: I'm having difficulty copying a directory tree from my FreeBSD server to USB storage. The problem is that the tree contains file and

Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Michael Sierchio ku...@tenebras.com writes: I just use tar for this. ( cd /path/to/src ; tar cf - . ) | ( cd /path/to/obj ; tar xf - ) I was going to launch into an explanation of shell quoting, but come to think of it, tar is how I do this too. On Sat, Nov 5, 2011 at 12:47 PM, Chris

Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
The tar one-liner is similar what I used to use on Gentoo and Arch linux, so I thought it strange that it isn't working here. I'm still having problems though, since the command returns Can't create '$FILENAME' for all files found. I quick tested by telling the tar command to copy to /tmp

Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Chris cpubur...@gmail.com writes: The tar one-liner is similar what I used to use on Gentoo and Arch linux, so I thought it strange that it isn't working here. I'm still having problems though, since the command returns Can't create '$FILENAME' for all files found. It would have been a

Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
Oh, and what kind of filesystem is on the USB device? - M On Sat, Nov 5, 2011 at 2:48 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Chris cpubur...@gmail.com writes: The tar one-liner is similar what I used to use on Gentoo and Arch linux, so I thought it strange that it

Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Michael Sierchio ku...@tenebras.com writes: Oh, and what kind of filesystem is on the USB device? msdosfs. Sorry; I trimmed that from what I quoted. - Lowell - M On Sat, Nov 5, 2011 at 2:48 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Chris cpubur...@gmail.com

Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
I apologize for the lack of detail. The command I'm using is: ( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd /mnt/usb ; tar xf - ) I've also tried: cp -afv /usr/local/etc/transmission/home/Downloads /mnt/usb rsync -aq /usr/local/etc/transmission/home/Downloads /mnt/usb

Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
On Sat, Nov 5, 2011 at 3:15 PM, Chris cpubur...@gmail.com wrote: I apologize for the lack of detail. The command I'm using is: ( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd /mnt/usb ; tar xf - ) Show, don't tell. What does tar report when you run it?

Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
On Sat, Nov 5, 2011 at 6:20 PM, Michael Sierchio ku...@tenebras.com wrote: On Sat, Nov 5, 2011 at 3:15 PM, Chris cpubur...@gmail.com wrote: I apologize for the lack of detail. The command I'm using is: ( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd /mnt/usb ; tar xf - )

Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
On a hunch, I gave the following a shot: tar -cvlf - '/usr/local/etc/transmission/home/Downloads'/ | split -a 2 -b 3900m - /mnt/usb/TX_DL.tar. which created a split tar archive of the files on /mnt/usb. I'm still thinking there's something with the source path/file names that the msdosfs driver