diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 01:23:03 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 01:23:03 +0100 |
commit | c509e335866ec8bb52d00ec65404a102908060f8 (patch) | |
tree | e9fddf0ace502bad6296c9153887c3168a0d3fd9 /Scripts/.local/scripts | |
parent | 3de452b775aa94497bcbf5b428fd09ee08353ef0 (diff) | |
download | dotfiles-c509e335866ec8bb52d00ec65404a102908060f8.tar.gz dotfiles-c509e335866ec8bb52d00ec65404a102908060f8.tar.bz2 dotfiles-c509e335866ec8bb52d00ec65404a102908060f8.zip |
(Scripts)~do_backup now has backups characterised by year
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/do_backup | 5 |
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" - |