Skip to content

PowerShell scripts to automate Google Cloud Platform disk snapshot creation and retention.

License

Notifications You must be signed in to change notification settings

wdwinslow/gcp-snapshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gcp-snapshots

PowerShell scripts to automate Google Cloud Platform disk snapshot creation and retention.

Warning - Use these scripts at your own risk. I accept no responsibility for you use of them. However, if you run into any issues please let me know so I can work to improve the scripts.

As part of a project I am working on, I needed a way to automate disk snapshot creation and retention. I found several good examples in BASH etc. However, I was unable to find anything in native PowerShell that I liked. So, I wrote some scripts and decided to publish them here in the hope of helping someone else.

  • new-snap.ps1 automates snapshot creation.
  • remove-snap.ps1 automates snapshot cleanup based on the age of the snapshot.

Obviously, you will need to schedule these to run at some interval. I've used Windows task scheduler for that purpose, and it seems to work great.

About

PowerShell scripts to automate Google Cloud Platform disk snapshot creation and retention.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published