Files
dotfiles/Scripts/.local/scripts/create_backup
Aryadev Chavali d88430aa8a (Scripts|SystemD)~rework backup system
This is purely for the desktop: only enable if you fix it up.
2023-10-06 01:16:47 +01:00

9 lines
144 B
Bash
Executable File

#!/usr/bin/env sh
set -xe
dir=/media/hdd/backup
name="$(date +%F)-$(date +%T)-$(basename $1).tar.xz"
XZ_OPT='-T0 -9' tar -Jcvf $dir/$name $1