rsync with mode --delete

Francis.Montagnac at Francis.Montagnac at
Tue Jun 23 05:37:39 UTC 2020


On Tue, 23 Jun 2020 11:14:41 +0700 Budi Janto via rsync wrote:

> I need to know, I use rsync-3.1.3_1 under FreeBSD both of server &
> client side. Server running ZFS with RAID system, stored data mount
> point to /mnt/DATA. Under certain circumstances, ZFS failure to mounting
> data in /mnt/DATA (Just empty directory), so client with rsync running
> periodically with mode --delete it's safety or will remove data on
> client too?

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.


More information about the rsync mailing list