backups: remove noop backend

the noop backend is migrated into 0 sites config.

when the updater code sees that there is no site to backup, it will
just fail. user has to manually update with skipBackup flag.
This commit is contained in:
Girish Ramakrishnan
2025-09-22 16:33:51 +02:00
parent 807094c829
commit 305441ea28
18 changed files with 17 additions and 246 deletions

View File

@@ -26,10 +26,7 @@ const props = defineProps({
const systemModel = SystemModel.create();
const provisionModel = ProvisionModel.create();
const storageProviders = STORAGE_PROVIDERS.concat([
{ name: 'No-op (Only for testing)', value: 'noop' }
]);
const storageProviders = Array.from(STORAGE_PROVIDERS);
const blockDevices = ref([]);
const disk = ref('');
const gcsKeyFileName = ref('');
@@ -120,9 +117,6 @@ onMounted(async () => {
<SingleSelect id="providerInput" v-model="provider" :options="storageProviders" option-key="value" option-label="name" />
</FormGroup>
<!-- Noop -->
<div class="warning-label" v-show="provider === 'noop'">{{ $t('backups.configureBackupStorage.noopNote') }}</div>
<!-- mountpoint -->
<FormGroup v-if="provider === 'mountpoint'">
<label for="mountPointInput">{{ $t('backups.configureBackupStorage.mountPoint') }}</label>
@@ -206,7 +200,7 @@ onMounted(async () => {
<TextInput id="bucketInput" v-model="providerConfig.bucket" required />
</FormGroup>
<FormGroup v-if="(provider !== 'filesystem' && provider !== 'noop') && !importOnly">
<FormGroup v-if="provider !== 'filesystem' && !importOnly">
<label for="prefixInput">{{ $t('backups.configureBackupStorage.prefix') }}</label>
<TextInput id="prefixInput" v-model="providerConfig.prefix" placeholder="Prefix for backup file names" />
</FormGroup>
@@ -265,7 +259,7 @@ onMounted(async () => {
<div class="error-label" v-show="gcsFileParseError">{{ gcsFileParseError }}</div>
</FormGroup>
<FormGroup v-if="provider !== 'noop'">
<FormGroup>
<label for="formatInput">{{ $t('backups.configureBackupStorage.format') }} <sup><a href="https://docs.cloudron.io/backups/#backup-formats" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></label>
<SingleSelect id="formatInput" v-model="format" :options="BACKUP_FORMATS" option-label="name" option-key="value" required />
<div class="warning-label" v-show="format === 'rsync' && (s3like(provider) || provider === 'gcs') && !importOnly">{{ $t('backups.configureBackupStorage.s3LikeNote') }} <sup><a href="https://docs.cloudron.io/backups/#amazon-s3" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></div>