
BTRFS Subvolume Manager Service Menu for Dolphin
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Access various BTRFS subvolume actions through a Dolphin service menu.
Functions include:
Verifying subvolume is not just a regular folder
Subvolume Snapshots - Read-Write or Read-Only
Subvolume Deletion
Subvolume Send/Receive
The scripts used by these servicemenus assume your root volume and any target volumes used for send|receive are already mounted. Root user access is required to act on BTRFS subvolumes.
The snapshots are given the same name as the source subvolume with the addition of the date/time the snapshot was created id this format:
SUBVOLUMENAME_YYMMDD-HHMMSS
for read-only snapshots:
SUBVOLUMENAME_YYMMDD-HHMMSS_ro
To change this to your liking, edit the two "snapshot..." scripts and change this line to reflect your preferred naming scheme:
target="$1"_`date +%y%m%d-%H%M%S`
To install, place the "subvol_manager.desktop" file and the "subvol_manager-scripts" folder and it's contents into:
Plasma 6:
~/.local/share/kio/servicemenus
Plasma 5:
~/.local/share/kservices5/ServiceMenus/
Required script dependencies include:
sudo
kdialog
notify-send
This servicemenu and scripts are freely offered with no warranty. Use at your own risk. They have been tested on more than one system prior to release. See the script file remarks for creator contact info. Last changelog:
Functions include:
Verifying subvolume is not just a regular folder
Subvolume Snapshots - Read-Write or Read-Only
Subvolume Deletion
Subvolume Send/Receive
The scripts used by these servicemenus assume your root volume and any target volumes used for send|receive are already mounted. Root user access is required to act on BTRFS subvolumes.
The snapshots are given the same name as the source subvolume with the addition of the date/time the snapshot was created id this format:
SUBVOLUMENAME_YYMMDD-HHMMSS
for read-only snapshots:
SUBVOLUMENAME_YYMMDD-HHMMSS_ro
To change this to your liking, edit the two "snapshot..." scripts and change this line to reflect your preferred naming scheme:
target="$1"_`date +%y%m%d-%H%M%S`
To install, place the "subvol_manager.desktop" file and the "subvol_manager-scripts" folder and it's contents into:
Plasma 6:
~/.local/share/kio/servicemenus
Plasma 5:
~/.local/share/kservices5/ServiceMenus/
Required script dependencies include:
sudo
kdialog
notify-send
This servicemenu and scripts are freely offered with no warranty. Use at your own risk. They have been tested on more than one system prior to release. See the script file remarks for creator contact info.
Updates and fixes
Fixed possible situation where closing certain dialog windows will continue the operation rather than cancel it.
Enhanced notifications.
Ratings & Comments
2 Comments
Updated to 1.0.1 - fixed a couple of typos in the desktop file.
I added " Get detailed information from a subvolume", added the ability to change the snapshot filename on the fly, and fixed a few places where "Cancel" didn't work right and one grammatical error.