aboutsummaryrefslogtreecommitdiff
path: root/bin/cron
blob: 9ade7a06a490f3e5872e65193bcb982f5ca0f8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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  &> /dev/null
cd $CWD