From 1cfe5264638b0df56c6945c47bb18ef1d384477a Mon Sep 17 00:00:00 2001 From: Arquivo Publico de Memoria Coletiva Date: Sat, 8 Aug 2015 11:37:56 -0300 Subject: Rename sync script --- bin/cron | 18 ------------------ bin/sync | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100755 bin/cron create mode 100755 bin/sync (limited to 'bin') diff --git a/bin/cron b/bin/cron deleted file mode 100755 index d192d9b..0000000 --- a/bin/cron +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Arquivo automatic syncronizer. -# - -# Parameters -CWD="`/bin/pwd`" -GIT="/usr/bin/git" -NICE="/usr/bin/nice -n 19" -IONICE="/user/bin/ionice -c 3" -ARCHIVE="/var/cache/sites/arquivo" - -# Run -cd $ARCHIVE -$IONICE $NICE $GIT annex add . && \ -$IONICE $NICE $GIT annex sync && \ -$IONICE $NICE $GIT annex get . &> /dev/null -cd $CWD diff --git a/bin/sync b/bin/sync new file mode 100755 index 0000000..d192d9b --- /dev/null +++ b/bin/sync @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Arquivo automatic syncronizer. +# + +# Parameters +CWD="`/bin/pwd`" +GIT="/usr/bin/git" +NICE="/usr/bin/nice -n 19" +IONICE="/user/bin/ionice -c 3" +ARCHIVE="/var/cache/sites/arquivo" + +# Run +cd $ARCHIVE +$IONICE $NICE $GIT annex add . && \ +$IONICE $NICE $GIT annex sync && \ +$IONICE $NICE $GIT annex get . &> /dev/null +cd $CWD -- cgit v1.2.3