From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 20977 invoked from network); 26 Apr 2022 11:43:49 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2022 11:43:49 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 9front; Tue Apr 26 07:42:11 -0400 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1650973325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=W+Or8F12/lXeThmzR6rrDnjwza5zCfMh8Nv6C0YM2q8=; b=tRgzORRIR6A0CVMarfox+nmCE2VL/N8g7r3ODlLtzivvVpz21hrL26Rt+DilPH6m0ECnSV CLISnIIEp495eQeWCBoqL0YR7sBRXIcADH2k6KK1B9T6yQw+QRaLEuuiZWDVAx/nAPBQeL mczOr5Inwxlcpl8voVSvUVKHSA0tsuc= Received: by wopr.sciops.net (OpenSMTPD) with ESMTPSA id 5249ae5b (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <9front@9front.org>; Tue, 26 Apr 2022 04:42:05 -0700 (PDT) Message-ID: <86A85EA0F3ED25D8BFEA50C7FD8BD9E9@wopr.sciops.net> Date: Tue, 26 Apr 2022 13:42:01 +0200 From: qwx@sciops.net To: 9front@9front.org In-Reply-To: <202e9c1d-00ab-45cf-8bf3-943651b68e47@sirjofri.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: compliant transactional just-in-time wrapper-scale SVG polling CMS extension proxy solution Subject: Re: [9front] Free Carrots #4: Making Backups Reply-To: 9front@9front.org Precedence: bulk On Sat Apr 23 06:23:23 +0200 2022, sl@stanleylieber.com wrote: > http://helpful.cat-v.org/Blog/2022/04/22/0/ > > sl Hello, I imagine that by now a whole bunch of people have come up with ways to back things up or synchronize trees. I've used mkfs(8) a lot, then clone(1), etc., but I really wanted to also be able to remove files no longer present (while not touching any mtimes for up-to-date stuff, etc.). After a bunch of iterations of scripts with diff(1) and others, I now use derp(1) together with the equivalent of dircp(1) and some awk [1]. This prints two commands, one to remove files, the other to unpack new or modified ones. Of course, it's slow and has tar(1)'s filename length limit, but I kind of like it. I'm very interested in hearing about other solutions though :) Cheers and thanks for the post, qwx [1] http://shithub.us/qwx/rc/HEAD/bin/syncab/raw