Class OSFTPDeltaUploadingStrategy
java.lang.Object
com.orientechnologies.backup.uploader.OSFTPDeltaUploadingStrategy
- All Implemented Interfaces:
OUploadingStrategy
This strategy performs an upload to a SFTP server. The upload of the delta between the local
backup directory and the remote one is performed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected OUploadMetadataexecuteSftpFileUpload(com.jcraft.jsch.JSch ssh, String sourceFile, String fName, String destinationDirectoryPath) protected booleanexecuteSftpUpload(com.jcraft.jsch.JSch ssh, String sourceBackupDirectory, String destinationDirectoryPath) executeUpload(String sourceFile, String fName, String destinationDirectoryPath) booleanexecuteUpload(String sourceBackupDirectory, String destinationDirectoryPath, String... accessParameters) Uploads a backup to a SFTP server
-
Constructor Details
-
OSFTPDeltaUploadingStrategy
public OSFTPDeltaUploadingStrategy()
-
-
Method Details
-
executeUpload
public boolean executeUpload(String sourceBackupDirectory, String destinationDirectoryPath, String... accessParameters) Uploads a backup to a SFTP server- Specified by:
executeUploadin interfaceOUploadingStrategy- Parameters:
sourceBackupDirectory-destinationDirectoryPath-accessParameters- (String host, String port, String username, String password)- Returns:
- success
-
executeSftpUpload
-
executeUpload
public OUploadMetadata executeUpload(String sourceFile, String fName, String destinationDirectoryPath) - Specified by:
executeUploadin interfaceOUploadingStrategy
-
executeSftpFileUpload
protected OUploadMetadata executeSftpFileUpload(com.jcraft.jsch.JSch ssh, String sourceFile, String fName, String destinationDirectoryPath) -
config
- Specified by:
configin interfaceOUploadingStrategy
-
executeDownload
- Specified by:
executeDownloadin interfaceOUploadingStrategy
-