Created
June 4, 2015 07:13
-
-
Save canujohann/6ef5cbf7318fde88c609 to your computer and use it in GitHub Desktop.
Revisions
-
canujohann revised this gist
Jun 4, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # s3fs + s3 sync ### Mount avec s3fs -
canujohann created this gist
Jun 4, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ # s3fs ### Mount avec s3fs ``` /usr/bin/s3fs s3.mydomain.com /my_folder_to_mount/ -o allow_other ``` ### unmount ``` unmount /my_folder_to_mount ``` ## s3 sync #### s3sync avec une cron task ``` */3 * * * * aws s3 sync s3://api.mydomain.com/ /api/ --exclude="*" --include="*.jpg" --include="*.png" --include="*.html" ```