mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 05:29:42 +00:00
updated doc, ta_data and sh
This commit is contained in:
parent
84551e2b6c
commit
62ab2096fc
|
@ -11,7 +11,7 @@ checkFs() {
|
||||||
printf "%b\n" "${RED}This operation can only be performed on a Btrfs filesystem.${RC}"
|
printf "%b\n" "${RED}This operation can only be performed on a Btrfs filesystem.${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
printf "%b\n" "${GREEN}}Btrfs filesystem detected. Continuing with the operation...${RC}"
|
printf "%b\n" "${GREEN}Btrfs filesystem detected. Continuing with the operation...${RC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Btrfs-Assistant/snapper and dependencies
|
# Install Btrfs-Assistant/snapper and dependencies
|
||||||
|
@ -20,7 +20,7 @@ installBtrfsStack() {
|
||||||
printf "%b\n" "${YELLOW}Installing btrfs-assistant/snapper and dependencies...${RC}"
|
printf "%b\n" "${YELLOW}Installing btrfs-assistant/snapper and dependencies...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
dnf)
|
dnf)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y btrfs-assistant make inotify-tools python3-dnf-plugin-snapper git
|
"$ESCALATION_TOOL" "$PACKAGER" install -y btrfs-assistant inotify-tools python3-dnf-plugin-snapper make git
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
|
@ -35,9 +35,9 @@ installBtrfsStack() {
|
||||||
|
|
||||||
# Create first snapper config for root and home and create new manual snapshots
|
# Create first snapper config for root and home and create new manual snapshots
|
||||||
configureSnapper() {
|
configureSnapper() {
|
||||||
printf "%b\n" "${YELLOW}Creating snapper root config and taking the first root snapshot...${RC}"
|
printf "%b\n" "${YELLOW}Creating snapper root(/) and home config and taking the first snapshots...${RC}"
|
||||||
snapper -c root create-config / && snapper -c root create --description "Manual Snapshot"
|
snapper -c root create-config / && snapper -c root create --description "First root Snapshot"
|
||||||
snapper -c home create-config /home && snapper -c home create --description "Manual Snapshot"
|
snapper -c home create-config /home && snapper -c home create --description "First home Snapshot"
|
||||||
# Modifyling default timeline root config
|
# Modifyling default timeline root config
|
||||||
"$ESCALATION_TOOL" sed -i 's/^TIMELINE_LIMIT_HOURLY="[^"]*"/TIMELINE_LIMIT_HOURLY="1"/' /etc/snapper/configs/root
|
"$ESCALATION_TOOL" sed -i 's/^TIMELINE_LIMIT_HOURLY="[^"]*"/TIMELINE_LIMIT_HOURLY="1"/' /etc/snapper/configs/root
|
||||||
"$ESCALATION_TOOL" sed -i 's/^TIMELINE_LIMIT_DAILY="[^"]*"/TIMELINE_LIMIT_DAILY="2"/' /etc/snapper/configs/root
|
"$ESCALATION_TOOL" sed -i 's/^TIMELINE_LIMIT_DAILY="[^"]*"/TIMELINE_LIMIT_DAILY="2"/' /etc/snapper/configs/root
|
||||||
|
@ -54,6 +54,7 @@ configureSnapper() {
|
||||||
|
|
||||||
# Check if the grub-btrfs dir exists before attempting to clone into it.
|
# Check if the grub-btrfs dir exists before attempting to clone into it.
|
||||||
cloneGrubBtrfs() {
|
cloneGrubBtrfs() {
|
||||||
|
printf "%b\n" "${YELLOW}Downloading grub-btrfs...${RC}"
|
||||||
if [ -d "$HOME/grub-btrfs" ]; then
|
if [ -d "$HOME/grub-btrfs" ]; then
|
||||||
rm -rf "$HOME/grub-btrfs"
|
rm -rf "$HOME/grub-btrfs"
|
||||||
fi
|
fi
|
||||||
|
@ -81,10 +82,15 @@ serviceStartEnable() {
|
||||||
systemctl start snapper-cleanup.timer && systemctl enable snapper-cleanup.timer #enables scheduled snapshot cleanup
|
systemctl start snapper-cleanup.timer && systemctl enable snapper-cleanup.timer #enables scheduled snapshot cleanup
|
||||||
printf "%b\n" "${YELLOW}Restarting grub-btrfsd service...${RC}"
|
printf "%b\n" "${YELLOW}Restarting grub-btrfsd service...${RC}"
|
||||||
systemctl restart grub-btrfsd
|
systemctl restart grub-btrfsd
|
||||||
printf "%b\n" "${YELLOW}Setup complete. Grub-btrfs and automatic snapshot configuration is now active.${RC}"
|
printf "%b\n" "${GREEN}Installation completed. Grub-btrfs and automatic snapshot configuration is now active.${RC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Post install information
|
||||||
|
someNotices() {
|
||||||
printf "%b\n" "${YELLOW}Notice: You can manage snapshots from the GUI with Btrfs Assistant.${RC}"
|
printf "%b\n" "${YELLOW}Notice: You can manage snapshots from the GUI with Btrfs Assistant.${RC}"
|
||||||
printf "%b\n" "${YELLOW}Notice: You may want to change (Hourly, daily, weekly, monthly, yearly) timeline settings via Btrfs Assistant GUI.${RC}"
|
printf "%b\n" "${YELLOW}Notice: You may want to change (Hourly, daily, weekly, monthly, yearly) timeline settings via Btrfs Assistant GUI.${RC}"
|
||||||
printf "%b\n" "${YELLOW}Notice: To perform a system recovery via Grub-btrfs, after booting into your snapshot, do the 'restore' operation with the Btrfs Assistant GUI.${RC}"
|
printf "%b\n" "${YELLOW}Notice: To perform a system recovery via Grub-btrfs, after booting into your snapshot, do the 'restore' operation with the Btrfs Assistant GUI.${RC}"
|
||||||
|
printf "%b\n" "${CYAN}Notice: The /boot partition is in EXT4 format by default in Fedora, so it can't be included in the snapshots. Backup it seperately."${RC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
|
@ -95,3 +101,4 @@ configureSnapper
|
||||||
cloneGrubBtrfs
|
cloneGrubBtrfs
|
||||||
installGrubBtrfs
|
installGrubBtrfs
|
||||||
serviceStartEnable
|
serviceStartEnable
|
||||||
|
someNotices
|
||||||
|
|
|
@ -67,7 +67,7 @@ task_list = "I"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Btrfs Assistant(+snapper), grub-btrfs Setup"
|
name = "Btrfs Assistant(+snapper), grub-btrfs Setup"
|
||||||
description = "Installs Btrfs-Assistan/Snapper, dnf snapper plugin and takes the first root(/) and /home snapshots\nInstalls Grub-Btrfs.\nEnables snapper-timeline and snapper-cleanup services.\nNotice: After installation you may want to change (Hourly, daily, weekly, monthly, yearly) timeline settings via Btrfs Assistant GUI.\nNotice: To perform a system recovery via Grub-btrfs, after the snapshot is booted, perform the restore operation with the Btrfs Assistant GUI.\nNotice: The /boot partition is in EXT4 format by default in Fedora, so it will not be included in the snapshots."
|
description = "Installs Btrfs-Assistan/Snapper, dnf snapper plugin and takes the first root(/) and /home snapshots\nInstalls Grub-Btrfs.\nEnables snapper-timeline and snapper-cleanup services.\nNotice: To perform a system recovery via Grub-btrfs, after the snapshot is booted, restore with the Btrfs Assistant GUI.\nNotice: The /boot partition is in EXT4 format by default in Fedora, so it can't be included in the snapshots. Backup seperately."
|
||||||
script = "fedora/fedora-btrfs-assistant.sh"
|
script = "fedora/fedora-btrfs-assistant.sh"
|
||||||
task_list = "I"
|
task_list = "I"
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
- **NVIDIA Proprietary Driver Setup**: Installs proprietary NVIDIA drivers for GPUs from 2014 or later.
|
- **NVIDIA Proprietary Driver Setup**: Installs proprietary NVIDIA drivers for GPUs from 2014 or later.
|
||||||
- **Virtualization Setup**: Installs virtualization tools.
|
- **Virtualization Setup**: Installs virtualization tools.
|
||||||
- **Configure DNF**: Optimizes DNF for better speeds.
|
- **Configure DNF**: Optimizes DNF for better speeds.
|
||||||
- **Btrfs Assistant(+snapper), grub-btrfs Setup**: Installs Btrfs-Assistan/Snapper, dnf snapper plugin and takes the first root(/) and /home snapshots. Enables snapper-timeline and snapper-cleanup services. Notice: After installation you may want to change (Hourly, daily, weekly, monthly, yearly) timeline settings via Btrfs Assistant GUI. Notice: To perform a system recovery via Grub-btrfs, after the snapshot is booted, perform the restore operation with the Btrfs Assistant GUI. Notice: The /boot partition is in EXT4 format by default in Fedora, so it will not be included in the snapshots.
|
- **Btrfs Assistant(+snapper), grub-btrfs Setup**: Installs Btrfs-Assistan/Snapper, dnf snapper plugin and takes the first root(/) and /home snapshots. Notice: The /boot partition is in EXT4 format by default in Fedora, so it can't be included in the snapshots. Backup it seperately.
|
||||||
|
|
||||||
## Applications Setup
|
## Applications Setup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user