Hi, ik want to execute a rsync command but it doesn't work because there is a space in the path.
this is source path /media/mediacenter/CANON XF2
this is the command. i have put this line in a template node
rsync -vrhn "{{{payload}}}" /home/mediacenter/rib/out
i get this error
rsync: link_stat "/media/mediacenter/CANON XF2\#012" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
suddenly the path becomes /media/mediacenter/CANON XF2\#012
when i put this command is the linux (ubuntu) terminal is works perfectly
rsync -vrhn "/media/mediacenter/CANON XF2" /home/mediacenter/rib/out
Node-RED flow
[{"id":"69a52fe4.a9407","type":"template","z":"9e40285b.9b7068","name":"rsync","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"rsync -vrhn \"{{{payload}}}\" /home/mediacenter/rib/out","output":"str","x":930,"y":800,"wires":[["18e03673.1e340a"]]},{"id":"18e03673.1e340a","type":"exec","z":"9e40285b.9b7068","command":"","addpay":true,"append":"","useSpawn":"false","timer":"60","oldrc":false,"name":"","x":1050,"y":800,"wires":[["5f15ab2.52de154"],["5f15ab2.52de154"],["5f15ab2.52de154"]]},{"id":"5f15ab2.52de154","type":"debug","z":"9e40285b.9b7068","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1210,"y":800,"wires":[]}]
how can i solve this issue?