Skip to content

Instantly share code, notes, and snippets.

View tarantegui's full-sized avatar

Toni Arantegui tarantegui

View GitHub Profile
@tarantegui
tarantegui / gce-snapshot.sh
Created July 28, 2016 10:50 — 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`