We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4eb75e commit 7ebf517Copy full SHA for 7ebf517
DriveBackup/src/main/java/ratismal/drivebackup/uploaders/s3/S3Uploader.java
@@ -83,7 +83,8 @@ public void test(File testFile) {
83
public void uploadFile(File file, String type) {
84
type = normalizeType(type);
85
try {
86
- String key = type + "/" + file.getName();
+ String destination = ConfigParser.getConfig().backupStorage.remoteDirectory;
87
+ String key = destination + "/" + type + "/" + file.getName();
88
minioClient.uploadObject(UploadObjectArgs.builder().bucket(_bucket).object(key).filename(file.getAbsolutePath()).build());
89
90
pruneBackups(type);
0 commit comments