I am trying to write a script to backup a folder to my server, but I'm making a error in the rsync command somewhere.
I'm able to do what I want in grsync, but when I use the command that grsync gives me I get a error.
The command I'm using is below
"rsync -r -t -v --progress -s /home/rob/.local/share/American Truck Simulator 192.168.1.61:/media/Spare/Lenny/test /"
The error I get is
"Unexpected remote arg: 192.168.1.61:/media/Spare/Lenny/test
rsync error: syntax or usage error (code 1) at main.c(1496) [sender=3.2.3]"
I'm thinking it has something to do with the spaces in the folder name, but I'm unable to figure it out.
Any help would be great
I'm able to do what I want in grsync, but when I use the command that grsync gives me I get a error.
The command I'm using is below
"rsync -r -t -v --progress -s /home/rob/.local/share/American Truck Simulator 192.168.1.61:/media/Spare/Lenny/test /"
The error I get is
"Unexpected remote arg: 192.168.1.61:/media/Spare/Lenny/test
rsync error: syntax or usage error (code 1) at main.c(1496) [sender=3.2.3]"
I'm thinking it has something to do with the spaces in the folder name, but I'm unable to figure it out.
Any help would be great