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

Simple python script that use a configuration file to create snapshots.

License

Notifications You must be signed in to change notification settings

steadywool/btrfs-autosnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧶 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

About

Simple python script that use a configuration file to create snapshots.

Topics

Resources

License

Stars

Watchers

Forks

Languages