From 8f42c9d19bdc243709815ad6072d1a0b777b8791 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 16 Apr 2022 18:39:45 +0300 Subject: feat(task): add backup script --- task/.local/bin/task-backup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 task/.local/bin/task-backup.sh (limited to 'task') diff --git a/task/.local/bin/task-backup.sh b/task/.local/bin/task-backup.sh new file mode 100755 index 0000000..972c798 --- /dev/null +++ b/task/.local/bin/task-backup.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Taskwarrior +cd ~/.task || exit +tar czf task-backup-$(date +'%Y%m%d').tar.gz *.data +mv *.tar.gz ~/Documents/Backup + +# Timewarrior +cd ~/.timewarrior/data +tar czf timew-backup-$(date +'%Y%m%d').tar.gz *.data +mv *.tar.gz ~/Documents/Backup + -- cgit v1.2.3