Skip to content

Instantly share code, notes, and snippets.

@canujohann
Created June 4, 2015 07:13
Show Gist options
  • Select an option

  • Save canujohann/6ef5cbf7318fde88c609 to your computer and use it in GitHub Desktop.

Select an option

Save canujohann/6ef5cbf7318fde88c609 to your computer and use it in GitHub Desktop.

Revisions

  1. canujohann revised this gist Jun 4, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion s3.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # s3fs
    # s3fs + s3 sync

    ### Mount avec s3fs

  2. canujohann created this gist Jun 4, 2015.
    21 changes: 21 additions & 0 deletions s3.md
    Original 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"
    ```