[solved]rsync error

Forum rules
Before you post please read how to get help
Post Reply
User avatar
pfd27
Level 2
Level 2
Posts: 90
Joined: Sun Feb 15, 2015 11:13 am

[solved]rsync error

Post by pfd27 » Sun Apr 02, 2017 4:55 pm

Hi Guys

Having a issue with rsync I'm hoping someone can help me with.
I have a bash script with a bunch of rsync commands to back up some folders to my
file server. I recently installed a second drive that is mounted in media/Storage.
I think the permissions are right because I can ssh into the folder and write to it.
The following is the code I am using

Code: Select all

rsync -avz --delete /home/rob/Downloads/ 192.168.1.61:media/Storage/Pfd27/Downloads/


and I get this output

Code: Select all

sending incremental file list
rsync: mkdir "/home/rob/media/Storage/Pfd27/Downloads" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.1]
It is trying to make the folder in my home folder instead of where the folder is mounted and is not even making it in the home folder.
I have tried everything I can think of and can't fine a answer with google.
Last edited by pfd27 on Mon Apr 03, 2017 7:47 pm, edited 1 time in total.

User avatar
slipstick
Level 5
Level 5
Posts: 943
Joined: Sun Oct 21, 2012 9:56 pm
Location: Somewhere on the /LL0 scale

Re: rsync error

Post by slipstick » Sun Apr 02, 2017 6:31 pm

Shouldn't that destination be /media/rob/Storage... instead of /home/rob/media/Storage... ?
In theory, theory and practice are the same. In practice, they ain't.

User avatar
pfd27
Level 2
Level 2
Posts: 90
Joined: Sun Feb 15, 2015 11:13 am

Re: rsync error [Solved]

Post by pfd27 » Sun Apr 02, 2017 8:07 pm

Thought it was going to be something silly. I had forgot to put a '/' in front of the destination folder

Code: Select all

rsync -avz --delete /home/rob/Documents/ 192.168.1.61:/media/Storage/Pfd27/Documents

Post Reply

Return to “Scripts & Bash”