RsyncProject / rsync

An open source utility that provides fast incremental file transfer. It also has useful features for backup and restore operations among many other use cases.
https://rsync.samba.org
Other
2.78k stars 331 forks source link

[rsyncd modules]Cannot copy one module after the other : rsync: change_dir "/volume2" (in volume1) failed: No such file or directory (2) #367

Closed sebma closed 2 years ago

sebma commented 2 years ago

Hi,

I have the following /etc/rsyncd.conf on the rsyncd source server :

$ egrep -v "^$|^#" /etc/rsyncd.conf
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
use chroot = no
read only = yes
dont compress = aac *.aiff *.aif *.avi *.m2ts *.m4v *.mov *.MOV *.mp4 *.mpg *.mxf *.tif *.wav *.png *.zip
exclude = .DS_Store desktop.ini \#recycle/
[volume1]
path = /volume1
[volume2]
path = /volume2
[volume3]
path = /volume3

And I run the following command :

$ syncCommand="rsync --stats -Hauv -h -P";nohup $syncCommand --log-file=$HOME/log/synchro_detailed_ADN_$(date +%Y%m%d).log "rsync://RSYNCD-SOURCE-SERVER/volume1/Archive 04" "rsync://RSYNCD-SOURCE-SERVER/volume2/Archive 05" "rsync://RSYNCD-SOURCE-SERVER/volume3/Archive 06" /ring/0/share/Archives_ADN/ 2>&1 | tee ~/log/synchro_ADN_$(date +%Y%m%d).log
nohup: ignoring input
receiving incremental file list
rsync: change_dir "/volume2" (in volume1) failed: No such file or directory (2)
rsync: change_dir "/volume3" (in volume1) failed: No such file or directory (2)
rsync: failed to set times on "/ring/0/share/Archives_ADN/Archive 04": Operation not permitted (1)
Archive 04/

Number of files: 6,473 (reg: 6,235, dir: 238)
Number of created files: 0
Number of regular files transferred: 0
Total file size: 16.63T bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 190.81K
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 270
Total bytes received: 208.94K

sent 270 bytes  received 208.94K bytes  3.77K bytes/sec
total size is 16.63T  speedup is 79,476,844.88
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1651) [generator=3.1.2]

I get these errors regarding the second and the third modules :

rsync: change_dir "/volume2" (in volume1) failed: No such file or directory (2)
rsync: change_dir "/volume3" (in volume1) failed: No such file or directory (2)

It seems rsync believes the volume2 and volume3 modules belong to the first module (volume1).

I did not find anything in man rsync regarding copying one module after the other.

Is this a bug ?

WayneD commented 2 years ago

You can only copy from one module at a time.

sebma commented 2 years ago

@WayneD Thanks for your answer. As it is not obvious, can you please provide the man rsync or man rsyncd.conf with this information ? :

You can only copy from one module at a time.

WayneD commented 2 years ago

The manpage now explains this in the ADVANCED USAGE and CONNECTING TO AN RSYNC DAEMON sections (which I just added).

sebma commented 2 years ago

@WayneD Thanks this update . Do you plan to implement the "copying from multiple modules" feature in the future ?

WayneD commented 2 years ago

No, there's too much security wrapped around each module.