Skip to content

Commit

Permalink
script to daily update
Browse files Browse the repository at this point in the history
  • Loading branch information
miRoox committed Jun 11, 2024
1 parent 4e42009 commit 0087770
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions daily-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

## on Linux
# crontab -e
# 0 21 * * * /path/to/MyWiki/daily-update.sh

## on Windows
# schtasks /create /tn "WikiDailyUpdate" /tr "\path\to\MyWiki\daily-update.sh" /sc daily /st 23:00

set -e

cd "$(dirname "$0")"

git add tiddlers
git commit -m "Update on $(date --utc -I) from $(hostname)"
git push

0 comments on commit 0087770

Please sign in to comment.