Class OS3DeltaUploadingStrategy
java.lang.Object
com.orientechnologies.backup.uploader.OS3DeltaUploadingStrategy
- All Implemented Interfaces:
OUploadingStrategy
This strategy performs an upload to a S3 bucket. The upload of the delta between the local backup
directory and the remote one is performed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateFolder(com.amazonaws.services.s3.AmazonS3 s3Client, String bucketName, String folderName) protected StringexecuteS3Download(com.amazonaws.services.s3.AmazonS3 s3Client, String bucketName, String directory) protected OUploadMetadataexecuteS3FileUpload(com.amazonaws.services.s3.AmazonS3 s3Client, String bucketName, String sourceFile, String destinationDirectoryPath) protected BooleanexecuteS3Upload(com.amazonaws.services.s3.AmazonS3 s3client, String bucketName, String sourceBackupDirectory, String destinationDirectoryPath) executeUpload(String sourceFile, String fName, String destinationDirectoryPath) booleanexecuteUpload(String sourceBackupDirectory, String destinationDirectoryPath, String... accessParameters) Uploads a backup to a S3 bucket
-
Constructor Details
-
OS3DeltaUploadingStrategy
public OS3DeltaUploadingStrategy()
-
-
Method Details
-
executeUpload
public boolean executeUpload(String sourceBackupDirectory, String destinationDirectoryPath, String... accessParameters) Uploads a backup to a S3 bucket- Specified by:
executeUploadin interfaceOUploadingStrategy- Parameters:
sourceBackupDirectory-destinationDirectoryPath-accessParameters- (String bucketName, String accessKey, String secretKey)- Returns:
- success
-
executeS3Upload
-
executeUpload
public OUploadMetadata executeUpload(String sourceFile, String fName, String destinationDirectoryPath) - Specified by:
executeUploadin interfaceOUploadingStrategy
-
executeS3FileUpload
protected OUploadMetadata executeS3FileUpload(com.amazonaws.services.s3.AmazonS3 s3Client, String bucketName, String sourceFile, String destinationDirectoryPath) -
config
- Specified by:
configin interfaceOUploadingStrategy
-
createFolder
-
executeDownload
- Specified by:
executeDownloadin interfaceOUploadingStrategy
-
executeS3Download
-