My only problem so far is that rsync is a complete pain when dealing with paths that have spaces in them
for example: /home/user/Folder One/folder two/file.or.folder
Code: Select all
rsync -acKPqrze ssh --timeout 30 "$TR_TORRENT_DIR/$TR_TORRENT_NAME" $REMOTEUSER@$REMOTEHOST:"$TR_TORRENT_DIR/$TR_TORRENT_NAME"
Code: Select all
rsync -acKPqrze ssh --timeout 30 "$TR_TORRENT_DIR/$TR_TORRENT_NAME" $REMOTEUSER@$REMOTEHOST:'"$TR_TORRENT_DIR/$TR_TORRENT_NAME"'
I've also tried padding $TR_TORRENT_DIR etc with the escape characters or replacing the spaces with ? marks but then rsync interprets them directly as "\ " or "?" and cannot find file "/home/user/Folder\ One/..." or "/home/user/Folder?One/..."
i've trolled around the rsync man-page 'til i'm blue in the fingers and have come up empty.
single & double quotes aren't working unless i don't use a variable. if i type it out manually it works great in both instances.
escaped quotes don't work at all.
question marks for the spaces don't work either
so aside from this not being directly transmission related, any ideas on how to convince rsync to behave?