hirak99 / yabsnap

Btrfs Scheduled Snapshot Manager for Arch
Apache License 2.0
65 stars 2 forks source link

Abstract out all btrfs calls into a module #32

Closed hirak99 closed 6 months ago

hirak99 commented 6 months ago

Abstract out the btrfs calls into a module, so that it is easier to create implementations for different snapshotting mechanisms.

hirak99 commented 6 months ago

Abstracted out in 880882e5abb5066c25f464b0824211705a9f1d7f

New implementations alternative to btrfs should be implementable via implementing abstract_mechanism.py and adding a reference to snap_mechanisms.py.

Btrfs implementation can serve as an example, btrfs_mechanism.py.