Skip to content

Instantly share code, notes, and snippets.

@nkcr
Last active November 24, 2015 09:45
Show Gist options
  • Save nkcr/f8481b098602a9c6e5f4 to your computer and use it in GitHub Desktop.
Save nkcr/f8481b098602a9c6e5f4 to your computer and use it in GitHub Desktop.
Bash commands to download gcstorage objects
$ mkdir ~/Desktop/$(date +%Y-%m-%d)
$ gsutil -m cp -L ~/Desktop/pgsql/manifest.txt -R gs://backup-reseaujeunesse-ch/pgsql ~/Desktop
$ gsutil -m rm gs://backup-eebulle-ch/pgsql/* # no worry if it delets pgsql folder, it will be created automatically by backup script
$ gsutil ls gs://backup-reseaujeunesse-ch/pgsql | grep -v .*0207.sql.aes | gsutil -m rm -I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment