Last active
November 24, 2015 09:45
-
-
Save nkcr/f8481b098602a9c6e5f4 to your computer and use it in GitHub Desktop.
Bash commands to download gcstorage objects
This file contains 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 characters
$ 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