Re: zfs replication tool
- In reply to: parv/FreeBSD: "Re: zfs replication tool"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Sep 2022 22:12:05 UTC
On 9/23/22 02:51, parv/FreeBSD wrote: > On Thu, Sep 22, 2022 at 10:58 PM David Christensen wrote: > ... > >> I wrote homebrew scripts to automate ZFS replication and I saw that >> error message many times in the past. The solution was to add the '-F' >> option to the 'zfs receive' commands. Is there a way to do this with >> zrepl? >> > > That "-F" option, for "zfs-recv(8)", will remove existing file system > (on the receiver side). For the option to work, existing snapshots would > need to be destroyed first. > > That is useful if one wants to re-set up backup file system & snapshots. > Else, what is even the point of incremental snapshot back ups. Agreed. And, this can be a time-consuming operation if the dataset(s) are large. When 'zfs receive -F' cannot resolve the situation, the only solution I could think of was to destroy the destination dataset(s) and start over with a full replication (e.g. '-R'). David