You are not logged in.
Pages: 1
Hi,
I have got a backup script I am working on
The directory path is /media/Backup Drive now rsync does not like the space in directory name
Added ' to it
/media/'Backup Drive'/
seems to work but wanted to know if its the best way to do it?
MrG
Mr Green
Offline
You can also escape the space like so:
/media/Backup\ Drive/
The backslash-space is important
Offline
You could probably also just quote the whole thing:
'/media/Backup Drive/'
Offline
emm tried backslash but rsync did not like it... will try again :-)
quote whole ... emm looks cleaner thanks
Mr Green
Offline
or ?, or * (/med*/Bac*/)
Offline
media is not the problem its the Backup Drive the space will try '*' and look up ? :-)
Mr Green
Offline
Pages: 1