Skip to content

Instantly share code, notes, and snippets.

@nazroll
Last active October 13, 2022 21:20
Show Gist options
  • Select an option

  • Save nazroll/fea293aa582506d7b1e7 to your computer and use it in GitHub Desktop.

Select an option

Save nazroll/fea293aa582506d7b1e7 to your computer and use it in GitHub Desktop.

Revisions

  1. nazroll revised this gist Sep 12, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gsutil_cron_example.sh
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,5 @@ export BOTO_CONFIG="/home/username/.boto"

    # A simple gsutil command that returns a list of files/folders in your bucket.
    # Replace "yourbucketname" with a bucket name from your Google Cloud Storage.
    # You can replace this line with your own gsutil command to upload a file, etc.
    gsutil ls -l gs://yourbucketname
  2. nazroll revised this gist Sep 12, 2015. No changes.
  3. nazroll revised this gist Sep 12, 2015. No changes.
  4. nazroll revised this gist Sep 12, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gsutil_cron_example.sh
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@
    PATH="$PATH":/path/to/gsutil/

    # Replace "/home/username/" with the path of your home directory in Linux/Mac.
    # The ".boto" file contains the config to connect to your Google Cloud Storage project.
    # The ".boto" file contains the settings that helps you connect to Google Cloud Storage.
    export BOTO_CONFIG="/home/username/.boto"

    # A simple gsutil command that returns a list of files/folders in your bucket.
    # Replace "yourbucketname" with a bucket name from your Google Cloud Storage project.
    # Replace "yourbucketname" with a bucket name from your Google Cloud Storage.
    gsutil ls -l gs://yourbucketname
  5. nazroll created this gist Sep 12, 2015.
    12 changes: 12 additions & 0 deletions gsutil_cron_example.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #! /bin/bash

    # Replace "/path/to/gsutil/" with the path of your gsutil installation.
    PATH="$PATH":/path/to/gsutil/

    # Replace "/home/username/" with the path of your home directory in Linux/Mac.
    # The ".boto" file contains the config to connect to your Google Cloud Storage project.
    export BOTO_CONFIG="/home/username/.boto"

    # A simple gsutil command that returns a list of files/folders in your bucket.
    # Replace "yourbucketname" with a bucket name from your Google Cloud Storage project.
    gsutil ls -l gs://yourbucketname