C# Class AwsSnapshotScheduler.Program

Datei anzeigen Open project: ronmichael/aws-snapshot-scheduler

Public Properties

Property Type Description
options Options

Public Methods

Method Description
Backup ( string name, string description, string volumeid, string volumename, string instancename, string expires ) : void
CheckForExpiredSnapshots ( ) : void

Check for any snapshots set to expire -- that have a tag key of "expires" with a value that is in the past.

CheckForScheduledSnapshots ( ) : void

Check for any volumes that have a snapshot scheduled based on the schedule in the snapshotSchedule tag key.

GetAfterTheHour ( string p, int def ) : int
GetDow ( string p, DayOfWeek def = DayOfWeek.Sunday ) : DayOfWeek
GetExpireHours ( string p, int def ) : int
GetInt ( string p, int def ) : int
GetTime ( string p, System.DateTime def = null ) : System.DateTime
ListVolumes ( ) : void

List all volumes found in region

Main ( string args ) : void
RegisterKeys ( string access, string secret ) : void

Private Methods

Method Description
SendMessageTimeout ( IntPtr hWnd, int Msg, int wParam, string lParam, int fuFlags, int uTimeout, int &lpdwResult ) : bool

Method Details

Backup() public static method

public static Backup ( string name, string description, string volumeid, string volumename, string instancename, string expires ) : void
name string
description string
volumeid string
volumename string
instancename string
expires string
return void

CheckForExpiredSnapshots() public static method

Check for any snapshots set to expire -- that have a tag key of "expires" with a value that is in the past.
public static CheckForExpiredSnapshots ( ) : void
return void

CheckForScheduledSnapshots() public static method

Check for any volumes that have a snapshot scheduled based on the schedule in the snapshotSchedule tag key.
public static CheckForScheduledSnapshots ( ) : void
return void

GetAfterTheHour() public static method

public static GetAfterTheHour ( string p, int def ) : int
p string
def int
return int

GetDow() public static method

public static GetDow ( string p, DayOfWeek def = DayOfWeek.Sunday ) : DayOfWeek
p string
def DayOfWeek
return DayOfWeek

GetExpireHours() public static method

public static GetExpireHours ( string p, int def ) : int
p string
def int
return int

GetInt() public static method

public static GetInt ( string p, int def ) : int
p string
def int
return int

GetTime() public static method

public static GetTime ( string p, System.DateTime def = null ) : System.DateTime
p string
def System.DateTime
return System.DateTime

ListVolumes() public static method

List all volumes found in region
public static ListVolumes ( ) : void
return void

Main() public static method

public static Main ( string args ) : void
args string
return void

RegisterKeys() public static method

public static RegisterKeys ( string access, string secret ) : void
access string
secret string
return void

Property Details

options public_oe static_oe property

public static Options,AwsSnapshotScheduler options
return Options