smaboshe / taskwarrior-backup

A script to backup Taskwarrior tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Taskwarrior backup restoration

a-t-0 opened this issue · comments

commented

Hi, thank you for sharing the batch script of the backup command. I was curious if there would be a possibility to have a restoring command in there as well. I have not yet found/determined that procedure.

Kind regards.

commented

After a little bit of research, I found a command for restoration of your backup file to be:

tar -xf "/mnt/c/Users/taskwarrior/task backup/18-08-28 Github backup method/backup_dir/task-backup-20180828194105.tar.gz" -C "/home/your_unix_username/.task"

This unpacks the contenets of the backed up file back into the .task folder. One should substitute his/her own personal file locations in the first directory and last directory. A detailed explanation on how to determine those is added in the readme I forked from this repository. :)