Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.11 KB

🧶 BTRFS automatic snapshot

⛔ This repository has been archived and is no longer actively maintained. ⛔

⛔ I recommend Snapper for taking snapshots of your system. ⛔

Create snapshots automatically with a configuration file !

🚀 Installation

To install this script, first clone this repository:

$ git clone https://github.com/kaniville/btrfs-autosnap
$ cd btrfs-autosnap

You can now copy the different files to their respective locations:

# mv snapshot.py /usr/local/bin/snapshot
# mkdir /etc/pacman.d/hooks
# mv snapshot.hook /etc/pacman.d/hooks/snapshot.hook

And finally, generate the default configuration file:

# snapshot --generate

💎 Usage

You can display the help by entering the command snapshot --help.

Snapshots are created automatically before each Archlinux update.

You can configure some options and choose which subvolumes will be snapshot by editing /etc/snapshot/snapshot.conf:

[subvolumes] # You can add subvolumes here
root = /

[main] # Constants
snapshot_dir = /.snapshots
keep_snapshots = 5