- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Rsync-Server Option - not see any folders
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have now a problem with the remote backup on option "rsync-server" (not via ssh). I want to pull data from a server (Nextcloud) via "rsync-server" option. I've searched (unlike the other time) about this problem but I could only find one solution. But it wont work.
I've installed rsync on the server and configured it thropugh /etc/rsyncd.conf just like my other backup that works this way (with the ReadyNAS and a server).
There are in different subnets and my firewall (pfsense) connects them. In the firewall logs is nothing suspicious.
In the logs of my nextcloud server are this lines:
connect from ReadyNAS.localdomain (192.168.178.30)
module-list request from ReadyNAS.localdomain (192.168.178.30)
So I am guessing that the connection to the server is correct and the NAS is requesting something. But why I don' t see any folders served from rsync from the nextcloud server?
Best regards
/etc/rsynd.conf
path = /media/Daten
hosts allow = *
uid = root
# group permission
gid = root
# only read directory
read only = true
# Log Optionen
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Kalle13 wrote:
But why I don' t see any folders served from rsync from the nextcloud server?
/etc/rsynd.confpath = /media/Daten
hosts allow = *
uid = root
# group permission
gid = root# only read directory
read only = true# Log Optionen
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
This looks somewhat misconfigured to me. Each module should start with [] section.
For instance if you look at the file on the NAS, you'll see something like
charset = utf-8
[SHARE1]
path = /data/SHARE1
comment =
use chroot = true
uid = root
gid = root
[SHARE2]
path = /data/SHARE2
comment =
use chroot = true
uid = root
gid = root
Try adding [Daten] to the beginning of your conf file.
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Kalle13 wrote:
But why I don' t see any folders served from rsync from the nextcloud server?
/etc/rsynd.confpath = /media/Daten
hosts allow = *
uid = root
# group permission
gid = root# only read directory
read only = true# Log Optionen
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
This looks somewhat misconfigured to me. Each module should start with [] section.
For instance if you look at the file on the NAS, you'll see something like
charset = utf-8
[SHARE1]
path = /data/SHARE1
comment =
use chroot = true
uid = root
gid = root
[SHARE2]
path = /data/SHARE2
comment =
use chroot = true
uid = root
gid = root
Try adding [Daten] to the beginning of your conf file.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Rsync-Server Option - not see any folders
> Try adding [Daten] to the beginning of your conf file.
That was a good hint. I did it and it was a success. I could see the folders and could configure a backup job. But I could'nt get a backup job running, there was always a failure.
The first two where due to: the problem with the home folder (you have to choose the right one).
The third and last where due to: I don't know. This was the failure from the ReadyNAS log: "rsync: failed to connect to xxxxxx Connection refused (111) rsync error: error in socket IO (code 10) at clientserver.c(127) [Receiver=3.1.3]"
After that third try I could not get any connection to the server nor see these folders. I absolutely don' t know why this happens so out of the blue that nothing works anymore. I also restartet the server and the ReadyNAS but no change.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Rsync-Server Option - not see any folders
If you are using the hostname in the ReadyNAS backup job, try switching to the IP address.
If that fails, maybe try running the rsync client on the nextcloud server, and see if you can back up the folder that way. That might give you some more clues.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Rsync-Server Option - not see any folders
@StephenB wrote:If you are using the hostname in the ReadyNAS backup job, try switching to the IP address.
I did both. Nothing worked.
If that fails, maybe try running the rsync client on the nextcloud server, and see if you can back up the folder that way. That might give you some more clues.
I did the following:
# rsync /media/Daten /root/TEST -v
skipping directory Daten
sent 16 bytes received 12 bytes 56.00 bytes/sec
total size is 0 speedup is 0.00
and
# rsync root@127.0.0.1:/media/Daten /root/TEST -v
# root@127.0.0.1's password:
skipping directory Daten
sent 8 bytes received 34 bytes 4.42 bytes/sec
total size is 0 speedup is 0.00
Rsync can do recursive why is it skipping my "Daten" folder?
After that I tried to configure a backup job on the readynas. What should I say, it works! Yeah!
It seems that I was only dumb yesterday and instered a wrong Hostname. So the first of hint of you: to add this "[SOURCE]" in my config was the thing.
Thank you StephenB, the second time!
So this case is closed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Rsync-Server Option - not see any folders
@Kalle13 wrote:# rsync root@127.0.0.1:/media/Daten /root/TEST -v
Rsync can do recursive why is it skipping my "Daten" folder?
Although you've figured out your problem, I wanted to comment on this. You didn't include the -r option in the command line.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Rsync-Server Option - not see any folders
You're right. Thank you.