From c509e335866ec8bb52d00ec65404a102908060f8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 11 Jun 2024 01:23:03 +0100 Subject: (Scripts)~do_backup now has backups characterised by year --- Scripts/.local/scripts/do_backup | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Scripts') 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" - -- cgit v1.2.3-13-gbd6f