Skip to content

Commit

Permalink
v1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhld16 authored Aug 8, 2024
1 parent f8626ef commit 487673a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DriveBackup/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ratismal</groupId>
<artifactId>DriveBackupV2</artifactId>
<version>1.7.0</version>
<version>1.8.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--suppress UnresolvedMavenProperty -->
Expand Down
10 changes: 6 additions & 4 deletions DriveBackup/src/main/java/ratismal/drivebackup/UploadThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,18 @@ public void run() {
backupBackingUp = 0;
ServerUtil.setAutoSave(false);
for (BackupListEntry set : backupList) {
for(Path folder : set.location.getPaths()) {
backupBackingUp++;
for (Path folder : set.location.getPaths()) {
if (set.create) {
makeBackupFile(folder.toString(), set.formatter, Arrays.asList(set.blacklist));
}
}
backupBackingUp++;
}
ServerUtil.setAutoSave(true);
logger.log(intl("backup-local-complete"));
logger.log(intl("backup-upload-start"));
backupStatus = BackupStatus.UPLOADING;
backupBackingUp = 0;
uploaders = new ArrayList<>(5);
if (config.backupMethods.googleDrive.enabled) {
uploaders.add(new GoogleDriveUploader(logger));
Expand Down Expand Up @@ -377,6 +378,7 @@ private void makeBackupFile(String location, LocalDateTimeFormatter formatter, L

private void uploadBackupFiles(List<Uploader> uploaders) {
for (BackupListEntry set : backupList) {
backupBackingUp++;
for(Path folder : set.location.getPaths()) {
uploadFile(folder.toString(), set.formatter, uploaders);
}
Expand Down Expand Up @@ -570,10 +572,10 @@ public static String getBackupStatus() {
return intl("backup-status-not-running");
}
BackupListEntry[] backupList = config.backupList.list;
String backupSetName = backupList[backupBackingUp].location.toString();
String backupSetName = backupList[backupBackingUp - 1].location.toString();
return message
.replace("<set-name>", backupSetName)
.replace("<set-num>", String.valueOf(backupBackingUp + 1))
.replace("<set-num>", String.valueOf(backupBackingUp))
.replace("<set-count>", String.valueOf(backupList.length));
}

Expand Down

0 comments on commit 487673a

Please sign in to comment.