rsync - Can't connect to ext drive

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
stephanieswitzer
Level 2
Level 2
Posts: 62
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

rsync - Can't connect to ext drive

Post by stephanieswitzer » Mon Mar 19, 2018 2:16 pm

My MacMini is wired to my Synology rt2600ac Router, which has a 1TB Ext HDD atteched to it's USB. I backup all my Macs to this drive using Time Machine.

So now I've been trying to backup the Mint Partition on my MacMini to this ext HDD using 'rsync' but keep failing to connect to tthe HDD attched to the router.

Code: Select all

sps@spsMacMini ~ $ sudo rsync /home/sps/ *********@192.168.1.1:22/ubshare1-2/Mint
**********@192.168.1.1's password: 
Permission denied, please try again.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1]
I'm using the router password, but it doesn't seem to work. It's the only PW I use to access/control the router.

Kinda out of my depth...
Mac-Mini running Linux Mint 19 Cinnamon (Single Boot), Intel© Core™ i5-2415M CPU @ 2.30GHz × 2, 8 GiB, Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

User avatar
AndyMH
Level 4
Level 4
Posts: 430
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: rsnyc - Can't connect to ext drive

Post by AndyMH » Mon Mar 19, 2018 3:59 pm

I did have rsync working to my synology (got a DS216) but it stopped working, think it was after I did an update on the NAS. Had the NAS mounted as a share in fstab. I've collected a few bookmarks on rsync and synology which might be worth following up. Haven't had the time or inclination to get it working, but will at some point:

https://forum.synology.com/enu/viewtopic.php?t=97908
https://improveandrepeat.com/2016/09/pa ... skstation/
https://www.synology.com/en-uk/knowledg ... nology_NAS
https://gist.github.com/h4cc/e86e7d9b3a696e5b9ddb
Thinkpad T430 i7-3632 Cinnamon 18.3, Thinkpad T420 Cinnamon 18.3, Thinkpad T410 Cinnamon 17.3, Thinkpad T60 19.0 Mate

User avatar
stephanieswitzer
Level 2
Level 2
Posts: 62
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

Re: rsync - Can't connect to ext drive

Post by stephanieswitzer » Mon Mar 19, 2018 4:24 pm

Thanks for the reply. I'll check out the links you gave me. Thanks again.
Mac-Mini running Linux Mint 19 Cinnamon (Single Boot), Intel© Core™ i5-2415M CPU @ 2.30GHz × 2, 8 GiB, Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

User avatar
smurphos
Level 5
Level 5
Posts: 950
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: rsync - Can't connect to ext drive

Post by smurphos » Tue Mar 20, 2018 2:01 am

You are using port 22 - SSH protocol. Is that your intention or is the drive accessible as a Samba share?

If the latter you mount the share on your local system and rsync to the mounted share.

This looks like relevant info for enabling SSH on the router - https://www.synology.com/en-uk/knowledg ... vices#t1_1

User avatar
AndyMH
Level 4
Level 4
Posts: 430
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: rsync - Can't connect to ext drive

Post by AndyMH » Tue Mar 20, 2018 1:37 pm

just checked and my link to the synology is still working. I mounted it as a share with a line in fstab as follows:

Code: Select all

# mount point for synology NAS used in rsync backups
192.168.0.5:/volume1/homes/andy/backups /media/andy/diskstation nfs rw,noauto,user,nofail 0 0
There were a few things I had to set up on the NAS, such as enabling rsync. It works BUT rsync did give errors see

viewtopic.php?f=47&t=254710

The 'proper' way to do it is through ssh and the subject of some of the links I posted earlier and have yet to get round to.
Thinkpad T430 i7-3632 Cinnamon 18.3, Thinkpad T420 Cinnamon 18.3, Thinkpad T410 Cinnamon 17.3, Thinkpad T60 19.0 Mate

User avatar
stephanieswitzer
Level 2
Level 2
Posts: 62
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

Re: rsync - Can't connect to ext drive

Post by stephanieswitzer » Wed Mar 21, 2018 4:07 pm

Thanks so much everyone. Im definitly going to try out your advice when I get home. (Out of town at the moment)
Mac-Mini running Linux Mint 19 Cinnamon (Single Boot), Intel© Core™ i5-2415M CPU @ 2.30GHz × 2, 8 GiB, Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

Post Reply

Return to “Other networking topics”