Giter Site home page Giter Site logo

Comments (7)

knorrie avatar knorrie commented on May 28, 2024

Hi! Here's a copy: https://paste.debian.net/plainh/1beb46ac
It's some perl duct taping that I'm not proud of, but it does the job.

from btrfs-heatmap.

mgrunwald avatar mgrunwald commented on May 28, 2024

Hey, thanks a lot! I'm about to patch debians dirvish-package and now I can include your improvements of the original post. Of course, I'll mention you and the original author.

Bonus kudos if you could tell me how you " convert[ed] all old snapshots into new btrfs snapshots, while still making sure daily backups could run in a consistent way every night." 0:)

from btrfs-heatmap.

knorrie avatar knorrie commented on May 28, 2024

That was done early 2015, at the same time we moved from the ext4 based filesystem for backup storage to btrfs. When moving existing backup snapshots to the new btrfs filesystem, it was simply done by creating the first subvolume, rsyncing the data, snapshotting it, rsyncing the next one from ext4, etc, essentially doing the same as the regular nightlies would do, but then fast forwarding it.

It was not done in-place, so I don't have ready-made tooling for that lying around. However, for a one-off action like that, a decent sysadmin should be able to write something quickly. Just only putting the most recent data into a subvolume would suffice (cp with reflink once), but then you need to detect if tree is a btrfs subvol or not while expiring the older ones.

from btrfs-heatmap.

berlincount avatar berlincount commented on May 28, 2024

Hi! Here's a copy: https://paste.debian.net/plainh/1beb46ac
It's some perl duct taping that I'm not proud of, but it does the job.

sadly, that paste expired :-/

from btrfs-heatmap.

mgrunwald avatar mgrunwald commented on May 28, 2024

sadly, that paste expired :-/

In case you use debian: I filed a wishlist bugreport to dirvish in Debian, but the maintainer seems to be in hibernation mode:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944488

There's a debdiff in the bugreport, so you should be able to create a debian package with btrfs support. Use alien to convert it to whatever you need. PM me if you need help.

BTW: that patch has been running for over a year now and it works perfectly :)

from btrfs-heatmap.

berlincount avatar berlincount commented on May 28, 2024

@mgrunwald nice, thank you! I'll give it a try ...

anything I need to know / convert / change when upgrading an existing dirvish-bank to this way of doing it?

I figure expire won't work the same? 🤔

from btrfs-heatmap.

mgrunwald avatar mgrunwald commented on May 28, 2024

I feel a bit bad that I captured this issue... Please contact me via [email protected] if you need further communication or if I should send you the dpkg.

My way of "conversion" ended up like this:

  • Remove the harddisk with the old backup, store it safely
  • Add a new (bigger, because bigger is better ;) ) harddisk
  • Format that with btrfs
  • Add the "btrfs" keyword to the configuration (see man dirvish.conf)
  • Initialise the vaults

knorrie mentioned a way to convert old backups, but for my use case it was overkill.
It's sad, that the debian maintainer kind of stopped working on that package :( I might start poking upstream.

from btrfs-heatmap.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.