Skip to content

dagorret/timeshift-autosnap

Repository files navigation

timeshift-autosnap

Timeshift auto-snapshot script which runs before package upgrade using Pacman hook.

Features

  • Creates Timeshift snapshots with unique comment.
  • Deletes old snapshots which are created using this script.
  • Auto generates grub if grub-btrfs package is installed.
  • Can be manually executed by running timeshift-autosnap command with elevated privileges.
  • Autosnaphot can be temporarily skipped by setting SKIP_AUTOSNAP environment variable (e.g. sudo SKIP_AUTOSNAP= pacman -Syu)

/etc/timeshift-autosnap.conf options:

  • skipAutosnap - if set to true script won't be executed.
  • deleteSnapshots - if set to false old snapshots won't be deleted.
  • maxSnapshots - defines maximum number of old snapshots to keep.
  • updateGrub - if set to false grub entries won't be generated.
  • snapshotDescription - defines value used to distinguish snapshots created using timeshift-autosnap.

Notes

  • It' working both in BTRFS and RSYNC mode.
  • This script is made in Arch and Arch based distros in mind but if there would be interest it should be easily ported to other distros.

Contribution

  • All new ideas and contributors are welcomed!

This a clone of Matti Hyttinen solution: https://gitlab.manjaro.org/Chrysostomus/timeshift-autosnap

About

Timeshift auto-snapshot script which runs before package upgrade using Pacman hook.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages