Date: Fri, 23 Sep 2022 15:12:05 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: questions@freebsd.org Subject: Re: zfs replication tool Message-ID: <2064833f-e289-3d6d-3996-4ab77fa254ed@holgerdanske.com> In-Reply-To: <CABObuOpi2dQFFz3te-V6PX4xhzJmFzrZhr0U__q04%2BOwGFqPmg@mail.gmail.com> References: <0a0ba81b-88f2-fa75-9abe-6f41da5d2c69@sentex.net> <20220916140236.jeizzganrtnsrhlo@x1> <20220920092905.3k7qzt7lvhywhcfn@x1> <20220920122029.ufsoyo47qnxtmcqk@x1> <20220920132503.8bfd124b9697d90e474086b3@sohara.org> <20220920125154.n7lcqr3xzhsrylzr@x1> <20220920142314.df043149e82d63cbd289a92e@sohara.org> <4cf58433-a13b-9b35-fc3e-8fad6b2ac93d@sentex.net> <20220920141006.n6x6mxpafy3zqpk3@x1> <b7586c2c-f435-334c-dff8-f7388163fa75@sentex.net> <20220923080305.alrgrrnxljtweo3i@x1> <498d478e-7fe7-1840-6263-930b498c5bbf@holgerdanske.com> <CABObuOpi2dQFFz3te-V6PX4xhzJmFzrZhr0U__q04%2BOwGFqPmg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2064833f-e289-3d6d-3996-4ab77fa254ed>