You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
445 B

4 years ago
#!/bin/bash
lockfile=/home/renx/static.renegade-x.com/sync.lock
{
if ! flock -n 9
then
exit 1
fi
echo Synching...
s3cmd sync --acl-public --add-header="Cache-Control:max-age=0" --config=/home/renx/static.renegade-x.com/.s3cfg-gcloud /home/renx/static.renegade-x.com/data/ s3://static.renegade-x.com/
# "--delete-removed" was removed due to a 400 InvalidArgument error; that functionality needs to be re-added somehow
} 9>"$lockfile"