Re: Problem Escaping Spaces in File Name

2009-01-05 Thread Jon
Hi, Mike Bombich wrote: Take a look at the "--protect-args" argument as well, this is probably a more elegant solution. Thanks, I agree it would be. Both these systems are running 2.6.8, though, which was released prior to the --protect-args switch. Add another thing to my list... Thanks

Re: Problem Escaping Spaces in File Name

2009-01-05 Thread Mike Bombich
Take a look at the "--protect-args" argument as well, this is probably a more elegant solution. -s, --protect-args This option sends all filenames and some options to the remote rsync without allowing the remote shell to interpret them. This means that spa

Re: Problem Escaping Spaces in File Name

2009-01-05 Thread Jon
As is always the case, I seem to have solved it a few minutes after writing this email. Turns out I don't need to escape it at all if I wrap the entire source path in double quotes. I had tried only wrapping the final directory in double quotes and that was failing. Thanks Jon Jon wrote:

Problem Escaping Spaces in File Name

2009-01-05 Thread Jon
Hi All, I realize this has been addressed ad naseum, but I simply cannot seem to solve my issue despite many hours of mucking about. I am attempting to run a command like: rsync -prvl --delete --stats --progress -e 'ssh -p 22 -i /root/.ssh/id_dsa' backup/company/data/current_backup/company_