From 9e09f2ac258908fab25d2ab10d4ff2a374dff316 Mon Sep 17 00:00:00 2001 From: Arquivo Publico de Memoria Coletiva Date: Sat, 1 Aug 2015 14:39:46 -0300 Subject: Cron script --- bin/cron | 5 +++++ bin/post-update | 0 doc.mdwn | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 bin/cron mode change 100644 => 100755 bin/post-update diff --git a/bin/cron b/bin/cron new file mode 100755 index 0000000..4148d33 --- /dev/null +++ b/bin/cron @@ -0,0 +1,5 @@ +#!/bin/bash +# +# Arquivo automatic syncronizer. +# +cd /var/cache/sites/arquivo && /usr/bin/git annex add . && /usr/bin/git annex sync &> /dev/null diff --git a/bin/post-update b/bin/post-update old mode 100644 new mode 100755 diff --git a/doc.mdwn b/doc.mdwn index b92cd19..b069567 100644 --- a/doc.mdwn +++ b/doc.mdwn @@ -24,7 +24,7 @@ Atualização automática Conteúdos baixados de outros sites pode ser automaticamente incluídos no `git-annex` diariamente através de um `cronjob` como o seguinte: - 30 6 * * * cd /var/cache/sites/arquivo && /usr/bin/git annex add . && /usr/bin/git annex sync &> /dev/null + 30 6 * * * /var/cache/sites/arquivo/bin/cron Ou de acordo com um [git-annex watch](http://git-annex.branchable.com/design/assistant/inotify/). -- cgit v1.2.3