LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2020, 09:18 AM   #1
ronnie10
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 0
rsync


I would like to know what I am doing wrong. I have a NAS and I just want to backup my home folder and exclude all the hidden files and directories

rsync -ua --progress --exclude=".*" /home/ron/ 192.168.2.253:/Volume_1/"Test"

This is the resuls:
ssh: connect to host 192.168.2.253 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]
 
Old 05-05-2020, 09:24 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by ronnie10 View Post
I would like to know what I am doing wrong. I have a NAS and I just want to backup my home folder and exclude all the hidden files and directories

rsync -ua --progress --exclude=".*" /home/ron/ 192.168.2.253:/Volume_1/"Test"

This is the resuls:
ssh: connect to host 192.168.2.253 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]
It can't connect to the remote system.
Can you SSH to it?
If so, did you setup keys?
 
1 members found this post helpful.
Old 05-05-2020, 12:07 PM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by ronnie10 View Post
This is the resuls:
ssh: connect to host 192.168.2.253 port 22: Connection refused
Is port 22 (the ssh one) open on the NAS?
And if so, are both sshd (the ssh daemon) and rsync (cq rsyncd) available there?

PS: rsync normally uses ssh to connect to the remote system to start a copy of ssh in server mode (unless rsyncd is already running there, then it can just connect TO it):
Quote:
It is also possible to use rsync without a remote shell as the transport. In this case you will directly connect to a remote rsync daemon, typically using TCP port 873. (This obviously requires the daemon to be running on the remote system, so refer to the STARTING AN RSYNC DAEMON TO ACCEPT CONNECTIONS section below for information on that.)
You get the error on port 22, so it is trying to connect through a remote shell as the transport.
That remote shell can be either ssh(d) - port 22 - or rsh - port 513
Quote:
-e, --rsh=COMMAND specify the remote shell to use

Last edited by ehartman; 05-05-2020 at 12:13 PM.
 
1 members found this post helpful.
Old 05-05-2020, 07:45 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Is sshd (the ssh server daemon) installed and running on the target computer?
 
Old 05-05-2020, 11:57 PM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by frankbell View Post
Is sshd (the ssh server daemon) installed and running on the target computer?
It is not a computer, a NAS (Network Attached Storage is a set of disks with firmware that form a mini network accessable system. See en.wikipedia.org/wiki/Network-attached_storage for more info.
That firmware (software) often is like Linux, and is somewhat configurable, through the network, of course,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 03:23 AM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 02:10 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration