def getLatestAvailableSnapshotFolderNameAtS3(): nodeS3Path = getNodeBackupS3Path() s3SnapshotFolderName = datetime.datetime.strftime(datetime.datetime.now(), '%Y%m%d') listOfRestorePointInDateTimeObject = getDateObjectFromString( getListOfRestorePoint(nodeS3Path, keyspace)) return getDateTimeObjectToString(listOfRestorePointInDateTimeObject, s3SnapshotFolderName)
def getLatestAvailableSnapshotFolderNameAtS3(): nodeS3Path = getNodeBackupS3Path() s3SnapshotFolderName = datetime.datetime.strftime(datetime.datetime.now(), '%Y%m%d') listOfRestorePointInDateTimeObject = getDateObjectFromString(getListOfRestorePoint(nodeS3Path,keyspace)) return getDateTimeObjectToString(listOfRestorePointInDateTimeObject,s3SnapshotFolderName)
def getListOfAvailableSnapshots(): bucketName = sys.argv[1] nodeName = (socket.gethostname()) nodeS3Path = "s3://" + bucketName + "/" + nodeName keySpace = sys.argv[2] print getListOfRestorePoint(nodeS3Path,keySpace)
def listLastSnapshot(): listOfRestorePointInDateTimeObject = getDateObjectFromString( getListOfRestorePoint(nodeS3Path, keyspaceName)) getSnapshots = getDateTimeObjectToString( listOfRestorePointInDateTimeObject, restoreFolderName) return getSnapshots
def getListOfAvailableSnapshots(): bucketName = sys.argv[1] nodeName = (socket.gethostname()) nodeS3Path = "s3://" + bucketName + "/" + nodeName keySpace = sys.argv[2] print getListOfRestorePoint(nodeS3Path, keySpace)