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.
13 lines
445 B
13 lines
445 B
#!/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"
|
|
|