|
@@ -29,14 +29,19 @@ pushd ${loc} > /dev/null
|
|
|
mkdir -p ./log
|
|
|
echo "$(date -Iseconds): Sync script executed" >> ./log/gin.log
|
|
|
|
|
|
-gin sync
|
|
|
+gin sync
|
|
|
checkerror $? "Error occurred during 'gin sync'"
|
|
|
gin commit .
|
|
|
checkerror $? "Error occurred during 'gin commit'"
|
|
|
gin upload
|
|
|
checkerror $? "Error occurred during 'gin upload'"
|
|
|
+# this is removing big file content if the upload is successful:
|
|
|
+gin remove-content
|
|
|
+checkerror $? "Error occurred during 'gin remove-content'"
|
|
|
|
|
|
-# Uncomment the two lines below to download all large files
|
|
|
+# Uncomment the two lines below to download all large files, you may also want to comment the gin remove-content line above
|
|
|
# gin get-content .
|
|
|
# checkerror $? "Error occurred during 'gin get-content'"
|
|
|
+
|
|
|
+
|
|
|
popd > /dev/null
|