- snapper_manager.sh Function: Acts as the main menu for the Snapper Management System. Features: Displays a menu with options for managing Btrfs subvolumes and Snapper configurations. Allows users to navigate to various functionalities like creating/deleting snapshots, listing subvolumes, managing Snapper configurations, and updating GRUB. Handles user input to call other scripts based on the selected option.
- list_subvolumes.sh Function: Lists all Btrfs subvolumes. Features: Uses btrfs subvolume list command to display all Btrfs subvolumes on the system. Provides an easy way to view all subvolumes, which is useful for creating Snapper configurations.
- list_configs.sh Function: Lists all existing Snapper configurations. Features: Uses snapper list-configs to display all current Snapper configurations. Helps users see which configurations are already set up.
- create_config.sh Function: Creates a new Snapper configuration for a specified subvolume. Features: Reads mount points from /etc/fstab to present a list of available subvolumes for snapshotting. Allows users to select a mount point and enter a name for the new Snapper configuration. Creates a new Snapper configuration for the selected subvolume.
- delete_config.sh Function: Deletes an existing Snapper configuration. Features: Lists all Snapper configurations and allows users to select one for deletion. Deletes the selected Snapper configuration along with all associated snapshots.
- create_snapshot.sh Function: Creates a manual snapshot for a selected Snapper configuration. Features: Lists all Snapper configurations and allows users to select one. Creates a new snapshot for the selected configuration.
- delete_snapshot.sh Function: Deletes a specific snapshot from a selected Snapper configuration. Features: Allows users to select a Snapper configuration and then a specific snapshot within that configuration. Deletes the selected snapshot.
- rollback_snapshot.sh Function: Rolls back the system state to a selected snapshot. Features: Presents a list of Snapper configurations and snapshots within the selected configuration. Rolls back the system state to the state captured in the selected snapshot.
- list_snapshots.sh Function: Lists all snapshots for a selected Snapper configuration. Features: Allows users to select a Snapper configuration. Lists all snapshots within the selected configuration.
- update_grub.sh Function: Updates the GRUB configuration. Features: Runs grub-mkconfig to update the GRUB boot menu, which is essential if grub-btrfs is used to include snapshots in the GRUB menu. Each script is designed to perform a specific task, making the system modular and easy to manage.
-
Notifications
You must be signed in to change notification settings - Fork 0
huzzyz/snapper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
My custom snapper bash scripts.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published