diff options
author | emkael <emkael@tlen.pl> | 2020-10-08 22:09:44 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-10-08 22:09:44 +0200 |
commit | d16cc1949f26b6554a395c048a73ab1d9e940522 (patch) | |
tree | 079c74f22933b9a41d93383d528c31eacde8f315 | |
parent | 1f8fd0f263fb35610d317ad3dc293d3ebd193c38 (diff) |
Pulling results pages into backup
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | _cron/autocommit | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ade5a4c --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +all: FORCE + +pull: + @rsync ${LIGA_RSYNC_OPTS} -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http + +autocommit: pull + @cd http && git diff --quiet || (git add . && git commit -m 'Autocommit' && git push) + +FORCE: diff --git a/_cron/autocommit b/_cron/autocommit new file mode 100644 index 0000000..045403f --- /dev/null +++ b/_cron/autocommit @@ -0,0 +1 @@ +# */30 * * * * cd $SITEPATH && make autocommit |