aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/create_backup
blob: cde5a0334c377f8e279b1c28ce58ee88f9a32b06 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env sh

set -xe

dir=$2/backup
arch=$2/archive
name="$(date +%F)-$(date +%T)-$(basename $1).tar.xz"

XZ_OPT='-T0 -9' tar -Jcvf $dir/$name $1