vimwiki/backup.sh

13 lines
346 B
Bash
Raw Normal View History

2021-11-01 01:15:30 +00:00
#!/bin/bash
2021-11-02 04:12:01 +00:00
# Get dir of the vimiwki
2021-11-02 04:07:57 +00:00
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2021-11-02 04:12:01 +00:00
#add changes to github
2021-11-02 04:07:57 +00:00
git -C "$SCRIPT_DIR" add .
git -C "$SCRIPT_DIR" commit -m "Update for $(date "+%d-%m-%y %R")"
git -C "$SCRIPT_DIR" push
2021-11-02 04:09:35 +00:00
2021-11-02 04:12:01 +00:00
#let me know about it
2021-11-02 04:09:35 +00:00
notify-send "Vimwiki" "Your Vimwiki has been backed up!"