Dotfiles/setup/modules/optional-Modules/apps/timeshift.sh

14 lines
447 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"
log "Installing Timeshift and cronie..."
sudo pacman -S --noconfirm --needed timeshift cronie
log "Installing timeshift-autosnap (AUR)..."
yay -S --answerdiff None --answerclean All --noconfirm timeshift-autosnap
log "Enabling cronie service..."
sudo systemctl enable --now cronie.service
log "Timeshift installed with autosnap on pacman transactions."