rsync - Can't connect to ext drive

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
stephanieswitzer
Level 4
Level 4
Posts: 235
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

rsync - Can't connect to ext drive

Post by stephanieswitzer »

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...
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mac-Mini running Linux Mint 20.3 Cinnamon, Intel© Core™ i5-2415M CPU @ 2.30GHz
MacBookPro9,2 running Linux Mint Cinnamon 20.3 Intel Core i5-3210M CPU @ 3.20GHz
System76 Galago Pro 4, running Linux Mint Cinnamon 20.3 Intel i5-1021 CPU @ 4.2 Ghz
User avatar
AndyMH
Level 21
Level 21
Posts: 13716
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: rsnyc - Can't connect to ext drive

Post by AndyMH »

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
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
stephanieswitzer
Level 4
Level 4
Posts: 235
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

Re: rsync - Can't connect to ext drive

Post by stephanieswitzer »

Thanks for the reply. I'll check out the links you gave me. Thanks again.
Mac-Mini running Linux Mint 20.3 Cinnamon, Intel© Core™ i5-2415M CPU @ 2.30GHz
MacBookPro9,2 running Linux Mint Cinnamon 20.3 Intel Core i5-3210M CPU @ 3.20GHz
System76 Galago Pro 4, running Linux Mint Cinnamon 20.3 Intel i5-1021 CPU @ 4.2 Ghz
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: rsync - Can't connect to ext drive

Post by smurphos »

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
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
AndyMH
Level 21
Level 21
Posts: 13716
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: rsync - Can't connect to ext drive

Post by AndyMH »

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.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
stephanieswitzer
Level 4
Level 4
Posts: 235
Joined: Mon Feb 26, 2018 12:49 pm
Location: Ontario

Re: rsync - Can't connect to ext drive

Post by stephanieswitzer »

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 20.3 Cinnamon, Intel© Core™ i5-2415M CPU @ 2.30GHz
MacBookPro9,2 running Linux Mint Cinnamon 20.3 Intel Core i5-3210M CPU @ 3.20GHz
System76 Galago Pro 4, running Linux Mint Cinnamon 20.3 Intel i5-1021 CPU @ 4.2 Ghz
Locked

Return to “Networking”