aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 01:23:03 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 01:23:03 +0100
commitc509e335866ec8bb52d00ec65404a102908060f8 (patch)
treee9fddf0ace502bad6296c9153887c3168a0d3fd9
parent3de452b775aa94497bcbf5b428fd09ee08353ef0 (diff)
downloaddotfiles-c509e335866ec8bb52d00ec65404a102908060f8.tar.gz
dotfiles-c509e335866ec8bb52d00ec65404a102908060f8.tar.bz2
dotfiles-c509e335866ec8bb52d00ec65404a102908060f8.zip
(Scripts)~do_backup now has backups characterised by year
-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"
-