RSync to Synology - No such file or directory


Recommended Posts

Hi,

 

I'm trying to setup RSync to work with Synology backup. Everything was working fine until I had to replace my flash drive.

 

/boot/config/go

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
bash /boot/custom/etc/rc.d/S20-init.rsyncd
modprobe i915
chmod -R 777 /dev/dri

 

/boot/custom/etc/rc.d/S20-init.rsyncd

#!/bin/bash

if ! grep ^rsync /etc/inetd.conf > /dev/null ; then
cat <<-EOF >> /etc/inetd.conf
rsync   stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/bin/rsync --daemon
EOF
read PID < /var/run/inetd.pid
kill -1 ${PID}
fi

cp /boot/custom/etc/rsyncd.conf /etc/rsyncd.conf

 

/boot/custom/etc/rsyncd.conf

uid             = root
gid             = root
use chroot      = no
max connections = 4
pid file        = /var/run/rsyncd.pid
timeout         = 600

[backupsFromSynology]
    path = /mnt/user/appdataBackup
    comment = Synology Backup
    read only = FALSE
    list      = yes

[boot]
    path = /boot
    comment = /boot files
    read only = FALSE
    list	  = yes

[mnt]
    path = /mnt
    comment = /mnt files
    read only = FALSE
    list	  = yes

[test1]
    path = /mnt/user/downloads
    comment = Test 1
    read only = FALSE
    list	  = yes

[test2]
    path = /mnt/disk1/synologyBackups
    comment = Test 2
    read only = FALSE
    list	  = yes

 

Command and results:

rsync --list-only [email protected]:/backupsFromSynology/ - No such file or directory (2)
rsync --list-only [email protected]:/test1/ - No such file or directory (2)
rsync --list-only [email protected]:/test2/ - No such file or directory (2)

rsync --list-only [email protected]:/mnt/ - List all folders
rsync --list-only [email protected]:/boot/ - List all folders

 

RSync Version

rsync  version 3.2.3  protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, atimes,
    batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
    symtimes, prealloc, stop-at, no crtimes
Optimizations:
    SIMD, asm, openssl-crypto
Checksum list:
    xxh128 xxh3 xxh64 (xxhash) md5 md4 none
Compress list:
    zstd lz4 zlibx zlib none

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

 

Can anyone help please?

 

Link to comment
  • 3 weeks later...

have you gone back and tried to do a backup using rsync manually?
can you connect properly between the systems?  do you need a new key? (eg could if have been deleted when you swapped USB's?)

the issue of no such file or directory should be telling here, can you resolve it another way and check?
does the folder have access rights?

Link to comment

Hi @isaw,

 

Thanks for your reply. What `key` are you talking about? I feel like I'm missing some detail here.

 

About the `no such file or directory`, it seems like a permission problem, but there were no changes on permission on either side. I'm using the `root` account to sync, which should have access to it all, right?

 

I'll try to do a manual sync... Maybe Synology is acting weird, right?

 

Thanks!!!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.