aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/create_backup
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-06 01:16:47 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-06 01:16:47 +0100
commitd88430aa8a5a322e819fb7ccddffa1bd645b883c (patch)
treeb3b1bfc030ac1d5c297ab44590b13931c558f985 /Scripts/.local/scripts/create_backup
parent9e975839fe0b98649549173fe04f9191226e0657 (diff)
downloaddotfiles-d88430aa8a5a322e819fb7ccddffa1bd645b883c.tar.gz
dotfiles-d88430aa8a5a322e819fb7ccddffa1bd645b883c.tar.bz2
dotfiles-d88430aa8a5a322e819fb7ccddffa1bd645b883c.zip
(Scripts|SystemD)~rework backup system
This is purely for the desktop: only enable if you fix it up.
Diffstat (limited to 'Scripts/.local/scripts/create_backup')
-rwxr-xr-xScripts/.local/scripts/create_backup3
1 files changed, 1 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/create_backup b/Scripts/.local/scripts/create_backup
index cde5a03..7a1309d 100755
--- a/Scripts/.local/scripts/create_backup
+++ b/Scripts/.local/scripts/create_backup
@@ -2,8 +2,7 @@
set -xe
-dir=$2/backup
-arch=$2/archive
+dir=/media/hdd/backup
name="$(date +%F)-$(date +%T)-$(basename $1).tar.xz"
XZ_OPT='-T0 -9' tar -Jcvf $dir/$name $1