aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/do_backup
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/do_backup')
-rwxr-xr-xScripts/.local/scripts/do_backup5
1 files changed, 2 insertions, 3 deletions
diff --git a/Scripts/.local/scripts/do_backup b/Scripts/.local/scripts/do_backup
index 66321e3..de2db42 100755
--- a/Scripts/.local/scripts/do_backup
+++ b/Scripts/.local/scripts/do_backup
@@ -2,8 +2,8 @@
set -xe
-dir="/media/hdd/backup/$(date +%F)/$(date +%T)"
-folders="$HOME/Code $HOME/Dotfiles $HOME/Downloads $HOME/Media $HOME/Pictures $HOME/Projects $HOME/Text"
+dir="/media/hdd/backup/$(date +%Y)/$(date +%m)-$(date +%d)"
+folders="$HOME/Dotfiles $HOME/Downloads $HOME/Media $HOME/Pictures $HOME/Projects $HOME/Text"
mkdir -p $dir
@@ -14,4 +14,3 @@ do
XZ_OPT='-T0 -9' tar -Jcvf $out_name -C $name .
done
notify-send "do_backup: Finished backup"
-