On 6/23/20 12:37 PM, francis.montag...@inria.fr wrote:
> If the rsync source path is /mnt/DATA yes, it will remove data on the
> client, but if the source path is a sub-directory of /mnt/DATA the
> rsync will fail without doing any deletion.
> 
> To verify in dry-run ... of course.
>
Thanks for first information. This is for more detail, which has already
been done.

Server side:
# zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
pool  4.98T  9.07T  4.98T  /mnt/DATA

# cat /some/path/rsyncd.conf
[data]
comment = Storage area total approx size: 5.0 TiB (5341197216 KiB).
gid = nobody
list = yes
log file = /var/log/rsyncd.log
log format = %o %m %a %f %l (%b)
max connections = 20
path = /mnt/DATA
read only = true
reverse lookup = false
timeout = 300
transfer logging = yes
uid = nobody
use chroot = yes

Client side:
# crontab -l
0       */3     *       *       *       /path/to/rsync.sh

# cat /path/to/rsync.sh
rsync -avPH --chmod=D755,F644 --delete rsync://xxx.xxx.xxx.xxx/data/

Any idea or suggestion to prevent client's data loss? Thank you.



-- 
Regards,


Budi Janto

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to