Skip to content

Commit e501276

Browse files
committed
Fix pruning not using remote directory
1 parent d3b33cd commit e501276

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DriveBackup/src/main/java/ratismal/drivebackup/uploaders/s3/S3Uploader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public void pruneBackups(String type) throws Exception {
108108
if (fileLimit == -1) {
109109
return;
110110
}
111-
TreeMap<ZonedDateTime, Item> files = getZipFiles(type);
111+
String destination = ConfigParser.getConfig().backupStorage.remoteDirectory;
112+
TreeMap<ZonedDateTime, Item> files = getZipFiles(destination + "/" +type);
112113
if (files.size() > fileLimit) {
113114
logger.info(
114115
intl("backup-method-limit-reached"),

0 commit comments

Comments
 (0)