public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* restic backup with btrfs /
@ 2025-06-28 17:33 Ulli Horlacher
  2025-06-30 10:07 ` Mark Harmstone
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ulli Horlacher @ 2025-06-28 17:33 UTC (permalink / raw)
  To: linux-btrfs

restic (https://restic.net/) is a great backup tool but has some
limitations or design flaws: one is, it believes that any subvolume is on a
different filesystem. This means: "restic backup --one-file-system /" will
only backup the root subvolume, but no other subvolumes like /home
/var/spool etc... 

One has to add every subvolume to the argument list. Bad if you 
create new subvolumes and forget to update the backup cronjob.
When you later need to restore a file, there will be none...

My idea is now: I do not backup the original /, but do:

mount --bind / /backup/restic
restic backup /backup/restic
umount /backup/restic

Next evolution step: 
I could recursivly mount-bind other filesystems into /backup/restic/
For example:

mount --bind /local /backup/restic/local
mount --bind /data /backup/restic/ldata

That I would have a "all in one backup".

What do you think of this idea?

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    https://www.tik.uni-stuttgart.de/
REF:<20250628173308.GB847325@tik.uni-stuttgart.de>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-07-07 13:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28 17:33 restic backup with btrfs / Ulli Horlacher
2025-06-30 10:07 ` Mark Harmstone
2025-06-30 13:41   ` Christoph Hellwig
2025-06-30 13:53     ` Mark Harmstone
2025-06-30 13:57       ` Christoph Hellwig
2025-06-30 17:30   ` Ulli Horlacher
2025-06-30 19:16     ` Ulli Horlacher
2025-07-03  8:00 ` Robert Krig
2025-07-04  9:39   ` Ulli Horlacher
2025-07-07 13:46 ` Ulli Horlacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox