<editorial>
OK on to rsync configuration
</editorial>
Synopsis: so is this issue a bug? Are there two bugs?
So I do have rsync working using my own script and the cron setup though it is problematic to configure using the GUI per my pervious topic/thread. The GUI rsync configuration is delicious looking and nearly works as below for my application.
I’ve run rsync in a manner similar to this for many years (nay decades):
Code: Select all
rsync -some_options somedirectory/or/other some host:/pathto/other/files
I’m running NAS4Free 10.2.0.2 (2118).
The GUI seems to make a few sensible modifications. It creates this file:
Code: Select all
[ijeff@nas4free /var/run]$ ls -l /var/run/rsync_client_698e0055-22f8-4a3b-a2c8-eb476975de7b.sh
-rwxrwx--- 1 ijeff wheel 924 Dec 9 05:48 /var/run/rsync_client_698e0055-22f8-4a3b-a2c8-eb476975de7b.sh
Code: Select all
[ijeff@nas4free /var/run]$ crontab -l
SHELL=/bin/ti
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who command
#
30 6 * * * /var/run/rsync_client_698e0055-22f8-4a3b-a2c8-eb476975de7b.sh
* * * * * /mnt/Pool1b/DS2Z/home/ijeff/bin/touchme
2,20 * * * * /mnt/Pool1b/DS2Z/home/ijeff/bin/rsyncwebcamsCode: Select all
[ijeff@nas4free /var/run]$ ./rsync_client_698e0055-22f8-4a3b-a2c8-eb476975de7b.sh
touch: /var/run/rsync_client_running_698e0055-22f8-4a3b-a2c8-eb476975de7b: Permission denied
sending incremental file list
rsync: change_dir "/var/run//myhost.mydomain.com//files2/IGJShared/webcams" failed: No such file or directory (2)
sent 20 bytes received 12 bytes 64.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]
Code: Select all
"myhost.mydomain.com//files2/IGJShared/webcams/webcam3" "/mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3/"
Code: Select all
"myhost.mydomain.com:/files2/IGJShared/webcams/webcam3" "/mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3/"
Code: Select all
touch: /var/run/rsync_client_running_698e0055-22f8-4a3b-a2c8-eb476975de7b: Permission denied
receiving file list ... done
webcam3/
webcam3/2015-11-27-181003_webcam3.jpg
webcam3/2015-11-27-181503_webcam3.jpg
webcam3/2015-11-27-182001_webcam3.jpg
webcam3/2015-11-27-182507_webcam3.jpg
webcam3/2015-11-27-183002_webcam3.jpgHere’s the full script:
Code: Select all
#!/bin/sh
/usr/bin/logger -p local4.notice "Start of remote RSYNC synchronization from /files2/IGJShared/webcams/webcam3 on myhost.mydomain.com to /mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3/"
if [ -r /var/run/rsync_client_running_698e0055-22f8-4a3b-a2c8-eb476975de7b ]; then
/usr/bin/logger -p local4.notice "Previous client synchronization still running... exiting"
exit
fi
/usr/bin/touch /var/run/rsync_client_running_698e0055-22f8-4a3b-a2c8-eb476975de7b
/usr/local/bin/rsync --log-file=/var/log/rsync_client.log --recursive --times --compress --archive -v "myhost.mydomain.com//files2/IGJShared/webcams/webcam3" "/mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3/"
/bin/rm -f /var/run/rsync_client_running_698e0055-22f8-4a3b-a2c8-eb476975de7b
/usr/bin/logger -p local4.notice "End of remote RSYNC synchronization from /files2/IGJShared/webcams/webcam3 on myhost.mydomain.com to /mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3Code: Select all
<rsync>
<rsyncclient>
<enable/>
<uuid>698e0055-22f8-4a3b-a2c8-eb476975de7b</uuid>
<rsyncserverip>myhost.mydomain.com</rsyncserverip>
<minute>30</minute>
<hour>6</hour>
<day></day>
<month></month>
<weekday></weekday>
<localshare>/mnt/Pool1b/DS2Z/backup/myhost/webcams/webcam3/</localshare>
<remoteshare>/files2/IGJShared/webcams/webcam3</remoteshare>
<all_mins>0</all_mins>
<all_hours>0</all_hours>
<all_days>1</all_days>
<all_months>1</all_months>
<all_weekdays>1</all_weekdays>
<description>test of webcam3 rsync</description>
<who>ijeff</who>
<options>
<recursive/>
<nodaemonreq/>
<times/>
<compress/>
<archive/>
<delete_algorithm>default</delete_algorithm>
<extraoptions>-v</extraoptions>
</options>
</rsyncclient>
</rsync>