mirror of
https://github.com/ghndrx/bash.git
synced 2026-02-10 06:45:12 +00:00
mod snapshot - add bluetooth install script
This commit is contained in:
7
scripts/snapshot-arch.sh
Normal file → Executable file
7
scripts/snapshot-arch.sh
Normal file → Executable file
@@ -4,8 +4,8 @@
|
||||
set -eu
|
||||
|
||||
# Define the source and destination directories
|
||||
src_dir="$HOME/Desktop"
|
||||
dst_dir="$HOME/snapshots"
|
||||
src_dir="/home"
|
||||
dst_dir="/opt/snapshots"
|
||||
|
||||
# Ensure the destination directory exists
|
||||
mkdir -p "$dst_dir"
|
||||
@@ -17,4 +17,5 @@ btrfs subvolume snapshot "$src_dir" "$dst_dir/desktop_snapshot_$(date +%Y%m%d%H%
|
||||
# System Reboot takes a snapshot
|
||||
# @reboot $HOME/snapshots/snapshot.sh
|
||||
# Every 12 hours take a snapshot
|
||||
# 0 */12 * * * $HOME/snapshots/snapshot.sh
|
||||
# 0 */12 * * * $HOME/snapshots/snapshot.sh
|
||||
@reboot /home/greg/Documents/github-repos/bash/scripts/snapshot-arch.sh
|
||||
Reference in New Issue
Block a user