julien colomb 3 lat temu
rodzic
commit
054c86b00f
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      sync

+ 7 - 2
sync

@@ -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