From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EB2DA15815E for ; Sat, 3 Feb 2024 16:15:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AF892BC02E; Sat, 3 Feb 2024 16:15:54 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5CC82BC026 for ; Sat, 3 Feb 2024 16:15:53 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rWIgK-0001Fa-Ou for gentoo-user@lists.gentoo.org; Sat, 03 Feb 2024 17:15:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Suggestions for backup scheme? Date: Sat, 3 Feb 2024 16:15:46 -0000 (UTC) Message-ID: References: <2595684.Lt9SDvczpP@rogueboard> User-Agent: slrn/1.0.3 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2c08a36f-49f3-4d38-a40c-7ff8efceffcd X-Archives-Hash: c232142fea02a7a6e85539f116278943 On 2024-02-03, Michael wrote: >> If you'll forgive the analogy, we'll say the the functionality of >> rsync (as used by rsnapshot) is built-in to ZFS. > > Broadly and rather loosely yes, by virtue of the COW and snapshot fs > architecture and the btrfs/zfs send-receive commands. > >> Is there an application that does with ZFS snapshots what the >> rsnapshot application itself does with rsync? > > COW filesystems do not need a 3rd party application. Really? I can edit a configuration file and then ZFS will provide me with daily/weekly/monthly/yearly snapshots of (say) /home, /etc, and /usr/local on an external hard drive? > They come with their own commands which can be called manually, or > scripted for convenience and automation. Yes, I know that. AFAICT, they provide commands that do pretty much what rsync does in my current backup scheme. It's the automation provided by rsnapshot that I'm asking about. > Various people have created their own scripts and applications, e.g. > > https://unix.stackexchange.com/questions/696513/best-strategy-to-backup-btrfs-root-filesystem > >> I googled for ZFS backup applications, but didn't find anything that >> seemed to be widespread and "supported" the way that rsnapshot is. > > There must be quite a few scripts out there, but can't say what support they > may receive. Random search revealed: > > https://www.zfsnap.org/ > > https://github.com/shirkdog/zfsbackup > > https://gbyte.dev/blog/simple-zfs-snapshotting-replicating-backup-rotating-convenience-bash-script Yes, there seem to be a lot of bare-bones homebrewed scripts like those. That is the sort of what I was looking for but they all seem a bit incomplete and unsupported compared rsnapshot. I can install rsnapshot with a simple "emerge rsnapshot", edit the config file, set up the crontab entries, and Bob's your uncle: rsnapshot bugfixes and updates get installed by the usual Gentoo update process, and backups "just happen". -- Grant