filesystem: rename backupFolder to backupDir

This commit is contained in:
Girish Ramakrishnan
2025-08-02 10:37:37 +02:00
parent 4fcaae8053
commit 547d8ae113
13 changed files with 66 additions and 49 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ describe('Backups API', function () {
const newTarget = {
provider: 'filesystem',
label: 'NewTarget',
config: { backupFolder: '/tmp/boxtest-newtarget' },
config: { backupDir: '/tmp/boxtest-newtarget' },
format: 'tgz',
retention: { keepWithinSecs: 60 * 60 },
schedule: '00 01 * * * *'
@@ -25,7 +25,7 @@ describe('Backups API', function () {
const encryptedTarget = {
provider: 'filesystem',
label: 'EncryptedTarget',
config: { backupFolder: '/tmp/boxtest-enctarget' },
config: { backupDir: '/tmp/boxtest-enctarget' },
format: 'rsync',
retention: { keepMonthly: 60 },
schedule: '* 1 * * * *',
@@ -267,7 +267,7 @@ describe('Backups API', function () {
describe('config', function () {
const someConfig = {
backupFolder: '/tmp/boxtest-someconfig',
backupDir: '/tmp/boxtest-someconfig',
};
it('cannot set invalid config', async function () {
@@ -287,7 +287,7 @@ describe('Backups API', function () {
expect(response.status).to.equal(200);
const result = await backupTargets.get(newTarget.id);
expect(result.config.backupFolder).to.be(someConfig.backupFolder);
expect(result.config.backupDir).to.be(someConfig.backupDir);
});
});
+1 -1
View File
@@ -121,7 +121,7 @@ async function setupServer() {
const id = await backupTargets.add({
provider: 'filesystem',
label: 'Default',
config: { backupFolder: '/tmp/boxtest' },
config: { backupDir: '/tmp/boxtest' },
format: 'tgz',
retention: { keepWithinSecs: 2 * 24 * 60 * 60 },
schedule: '00 00 23 * * *'