diff options
Diffstat (limited to 'task/.local/bin')
-rwxr-xr-x | task/.local/bin/task-backup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 + |