Help, rsync is being a massive prick
Hello folks, I'm stuck and I need a hand. This may be something simple, but I just cannot see what it's happening, and if I'm not figuring it out after an hour, I'm probably not going to. I also have flu, so it's entirely possible my addled brain has failed somewhere along the way.
I'm attempting to synchronise (temporarily) my Plex servers, so I can switch between the two at will. I'm failing at the intial synchronisation of data.
I'm running the following command from the source server:
rsync -r -a -v -e "ssh -l user" --delete "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/" [email protected]:"/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
What actually happens is that the rsync job creates the folder 'Application' at the location '/var/lib/plexmediaserver/Library/' and stuffs everything in there. I've also tried the above command minus the quotation marks, using \ to escape the spaces, and the result is the same.
If it matters, I'm running Debian 7 64 bit on both servers.
Help gratefully received. Insults less gratefully received, but if they get me on the road to where I need to be, we're all good.
Here lies Nekki. He loved massive amounts of storage, K-Pop and calling people cunts.