Skip to content

Commit 1e58104

Browse files
authored
make NASBackupFullEvery use NasBackupIncrementalEnabled as the parent
1 parent 054ee34 commit 1e58104

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ public class NASBackupProvider extends AdapterBase implements BackupProvider, Co
9393
true,
9494
BackupFrameworkEnabled.key());
9595

96-
ConfigKey<Integer> NASBackupFullEvery = new ConfigKey<>("Advanced", Integer.class,
97-
"nas.backup.full.every",
98-
"10",
99-
"Take a full NAS backup every Nth backup; remaining backups in between are incremental. " +
100-
"Counts backups, not days, so it works for hourly, daily, and ad-hoc schedules. " +
101-
"Set to 1 to disable incrementals (every backup is full).",
102-
true,
103-
ConfigKey.Scope.Zone,
104-
BackupFrameworkEnabled.key());
105-
10696
ConfigKey<Boolean> NASBackupIncrementalEnabled = new ConfigKey<>("Advanced", Boolean.class,
10797
"nas.backup.incremental.enabled",
10898
"false",
@@ -116,6 +106,16 @@ public class NASBackupProvider extends AdapterBase implements BackupProvider, Co
116106
ConfigKey.Scope.Zone,
117107
BackupFrameworkEnabled.key());
118108

109+
ConfigKey<Integer> NASBackupFullEvery = new ConfigKey<>("Advanced", Integer.class,
110+
"nas.backup.full.every",
111+
"10",
112+
"Take a full NAS backup every Nth backup; remaining backups in between are incremental. " +
113+
"Counts backups, not days, so it works for hourly, daily, and ad-hoc schedules. " +
114+
"Set to 1 to disable incrementals (every backup is full).",
115+
true,
116+
ConfigKey.Scope.Zone,
117+
NASBackupIncrementalEnabled.key());
118+
119119
@Inject
120120
private BackupDao backupDao;
121121

0 commit comments

Comments
 (0)