Comments (7)
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.
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.
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.
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.
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.
@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.
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)
- Explicitly use python2 HOT 3
- Man page missing from regular releases HOT 1
- Documentation needed? HOT 2
- Running python script as root? HOT 2
- Clarify license HOT 3
- btrfs-heatmap: search_v2(): ioctl.py:265:search_v2:PermissionError: [Errno 1] Operation not permitted HOT 6
- StopIteration when doing --sort virtual on small filesystem HOT 4
- BTRFS mounted on BTRFS shows the top most filesystem HOT 5
- ! [new branch] debian/master -> origin/debian/master (unable to update local ref)
- Feature request: Support image output to stdout HOT 10
- Suggestion: Use colors for different RAID levels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrfs-heatmap.