diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-16 18:39:45 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-16 18:39:45 +0300 |
commit | 8f42c9d19bdc243709815ad6072d1a0b777b8791 (patch) | |
tree | 74080e289c02f2566117153471f0431dc3e5ce2c /task/.local/bin/task-backup.sh | |
parent | de325bc2b94f546096457d97fb92b91b20360f94 (diff) | |
download | dotfiles-8f42c9d19bdc243709815ad6072d1a0b777b8791.tar.gz |
feat(task): add backup script
Diffstat (limited to 'task/.local/bin/task-backup.sh')
-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 + |