Skip to content

Instantly share code, notes, and snippets.

View entropin's full-sized avatar

Robin Westerlundh entropin

  • thisoneisgreen.com
  • Stockholm
View GitHub Profile
@entropin
entropin / gce-snapshot.sh
Created January 19, 2016 22:09 — forked from peihsinsu/gce-snapshot.sh
GCE daily scheduling snapshot backup
#!/bin/bash
# Environments
export PATH=/root/google-cloud-sdk/bin:$PATH
# Daily create snapshot for "backup_path" listed disks
# And remove snapshot 1 week old before
# Create snap date
export DT=`date +%Y%m%d`