Пример #1
0
def getLatestAvailableSnapshotFolderNameAtS3():
    nodeS3Path = getNodeBackupS3Path()
    s3SnapshotFolderName = datetime.datetime.strftime(datetime.datetime.now(),
                                                      '%Y%m%d')
    listOfRestorePointInDateTimeObject = getDateObjectFromString(
        getListOfRestorePoint(nodeS3Path, keyspace))
    return getDateTimeObjectToString(listOfRestorePointInDateTimeObject,
                                     s3SnapshotFolderName)
Пример #2
0
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)
Пример #4
0
def listLastSnapshot():
    listOfRestorePointInDateTimeObject = getDateObjectFromString(
        getListOfRestorePoint(nodeS3Path, keyspaceName))
    getSnapshots = getDateTimeObjectToString(
        listOfRestorePointInDateTimeObject, restoreFolderName)
    return getSnapshots
Пример #5
0
def getListOfAvailableSnapshots():
    bucketName = sys.argv[1]
    nodeName = (socket.gethostname())
    nodeS3Path = "s3://" + bucketName + "/" + nodeName
    keySpace = sys.argv[2]
    print getListOfRestorePoint(nodeS3Path, keySpace)