snapraid-btrfs-runner - cleanup guidance? #10
-
Hello, I'm revisiting snapraid-btrfs as I'm adapting the snapraid-runner tool to work with it. My tool is aptly named snapraid-btrfs-runner. With this tool I implement a basic automated sync + scrub workflow using snapraid-btrfs. I'd like to implement a cleanup yes/no option in the configuration that's exposed to users, and if the sync and scrub are successful, run a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, As I understand your question, yes, it should indeed be as simple as just running Specifying a cleanup algorithm with the The behavior above should be explained by the output of A few caveats:
Thanks for opening this issue. It's interesting to hear how you're making use of snapraid-btrfs. I'm going to convert this issue into a discussion, but please feel free to follow up if you have any other questions. |
Beta Was this translation helpful? Give feedback.
Hi,
As I understand your question, yes, it should indeed be as simple as just running
snapraid-btrfs cleanup
. That's what I do myself, and it's how the command is designed to be used.Specifying a cleanup algorithm with the
--cleanup
option will only affect thesnapper cleanup
command, which is not run bysnapraid-btrfs cleanup
. Instead,snapraid-btrfs cleanup
usessnapper rm
to delete any snapshots created bysnapraid-btrfs
which are older than the one which a sync was last successfully completed with (or older than whatever snapshot you specify with--use-snapshot
or--use-snapshot-all
, but the default for thecleanup
command issync
, and I don't think it's terribly useful to change tha…