aboutsummaryrefslogtreecommitdiff
path: root/task/.local/bin/task-backup.sh
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-16 18:39:45 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-16 18:39:45 +0300
commit8f42c9d19bdc243709815ad6072d1a0b777b8791 (patch)
tree74080e289c02f2566117153471f0431dc3e5ce2c /task/.local/bin/task-backup.sh
parentde325bc2b94f546096457d97fb92b91b20360f94 (diff)
downloaddotfiles-8f42c9d19bdc243709815ad6072d1a0b777b8791.tar.gz
feat(task): add backup script
Diffstat (limited to 'task/.local/bin/task-backup.sh')
-rwxr-xr-xtask/.local/bin/task-backup.sh12
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
+