backups: show same filesystem warning

fixes #867
This commit is contained in:
Girish Ramakrishnan
2025-11-05 16:48:14 +01:00
parent de84b5113c
commit a518ee83cc
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -76,7 +76,12 @@ async function getStatus(config) {
hostPath = config.backupDir;
}
return await mounts.getStatus(config._provider, hostPath); // { state, message }
const status = await mounts.getStatus(config._provider, hostPath); // { state, message }
if (config._provider === mounts.MOUNT_TYPE_FILESYSTEM && status.state === 'active') {
status.message = 'Backups are stored on the same disk as Cloudron. If the disk fills up or fails, Cloudron may stop working and data could be lost. <a href="https://docs.cloudron.io/backups/#storage-providers" target="_blank">Learn how to store backups externally.</a>';
}
return status;
}
function hasChownSupportSync(config) {