PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
Revert "FIX (storages): Remove storages limitation warning"
Rostislav Duginb74270764984
diff --git a/README.md b/README.mdindex c8099bca..db698a00 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@<div align="center"><img src="assets/logo.svg" alt="Databasus Logo" width="250"/>- <h3>Database backup tool (PostgreSQL, MySQL\MariaDB and MongoDB)</h3>+ <h3>PostgreSQL backup tool (with MySQL\MariaDB and MongoDB support)</h3><p>Databasus is a free, open source and self-hosted tool to backup databases (with primary focus on PostgreSQL). Make backups with different storages (S3, Google Drive, FTP, etc.) and notifications about progress (Slack, Discord, Telegram, etc.)</p><!-- Badges -->diff --git a/frontend/src/features/backups/ui/BackupsComponent.tsx b/frontend/src/features/backups/ui/BackupsComponent.tsxindex 87c1ea93..9693b143 100644--- a/frontend/src/features/backups/ui/BackupsComponent.tsx+++ b/frontend/src/features/backups/ui/BackupsComponent.tsx@@ -569,6 +569,17 @@ export const BackupsComponent = ({<span className="md:hidden">Backup now</span><span className="hidden md:inline">Make backup right now</span></Button>++ {!IS_CLOUD && (+ <a+ href="https://databasus.com/cloud"+ target="_blank"+ rel="noreferrer"+ className="inline-flex h-8 items-center rounded-md border border-blue-600 px-[15px] text-sm leading-none transition-colors hover:bg-blue-50 dark:!text-white dark:hover:bg-blue-900/30"+ >+ Get 24x7 uptime and 2x independent backups copy+ </a>+ )}</div>)}diff --git a/frontend/src/features/storages/ui/StoragesComponent.tsx b/frontend/src/features/storages/ui/StoragesComponent.tsxindex 1b6312b4..534cb8d9 100644--- a/frontend/src/features/storages/ui/StoragesComponent.tsx+++ b/frontend/src/features/storages/ui/StoragesComponent.tsx@@ -1,6 +1,8 @@+import { ExclamationCircleOutlined } from '@ant-design/icons';import { Button, Modal, Spin } from 'antd';import { useEffect, useState } from 'react';+import { IS_CLOUD } from '../../../constants';import { storageApi } from '../../../entity/storages';import type { Storage } from '../../../entity/storages';import type { UserProfile } from '../../../entity/users';@@ -100,6 +102,31 @@ export const StoragesComponent = ({>{storages.length >= 5 && isCanManageStorages && addStorageButton}+ {!IS_CLOUD && (+ <div className="mb-3 rounded bg-yellow-50 p-3 shadow dark:bg-yellow-900/30">+ <div className="mb-1 flex items-center gap-1.5 text-sm font-bold text-yellow-700 dark:text-yellow-400">+ <ExclamationCircleOutlined />+ Self-hosted notice+ </div>++ <div className="text-sm !text-yellow-600 dark:!text-yellow-500">+ Do not forget to backup the storage itself as it contains all your backups.+ <br /> Or you can use cloud{"'"}s build-in{' '}+ <u>unlimited storage with double reservation</u>. We care about security,+ maintainance and 24x7 uptime+ </div>++ <a+ href="https://databasus.com/cloud"+ target="_blank"+ rel="noreferrer"+ className="mt-2 block w-full rounded-md !bg-green-600 px-4 py-1.5 text-center text-sm font-medium !text-white transition-colors hover:!bg-green-700 dark:!bg-green-700 dark:hover:!bg-green-800"+ >+ Use cloud storage from $9+ </a>+ </div>+ )}+{storages.map((storage) => (<StorageCardComponentkey={storage.id}diff --git a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsxindex e74ed80c..c9727eeb 100644--- a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx+++ b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx@@ -1,4 +1,4 @@-import { InfoCircleOutlined } from '@ant-design/icons';+import { ExclamationCircleOutlined, InfoCircleOutlined } from '@ant-design/icons';import { Button, Input, Select, Switch, Tooltip } from 'antd';import { useEffect, useState } from 'react';@@ -491,6 +491,33 @@ export function EditStorageComponent({{storage?.type === StorageType.LOCAL && <EditLocalStorageComponent />}</div>+ <div>+ {!IS_CLOUD && (+ <div className="mb-3 rounded bg-yellow-50 p-3 shadow dark:bg-yellow-900/30">+ <div className="mb-1 flex items-center gap-1.5 text-sm font-bold text-yellow-700 dark:text-yellow-400">+ <ExclamationCircleOutlined />+ Self-hosted notice+ </div>++ <div className="text-sm !text-yellow-600 dark:!text-yellow-500">+ Do not forget to backup the storage itself as it contains all your backups.+ <br /> Or you can use cloud{"'"}s build-in{' '}+ <u>unlimited storage with double reservation</u>. We care about security, maintainance+ and 24x7 uptime for you+ </div>++ <a+ href="https://databasus.com/cloud"+ target="_blank"+ rel="noreferrer"+ className="mt-2 block w-full rounded-md !bg-green-600 px-4 py-1.5 text-center text-sm font-medium !text-white transition-colors hover:!bg-green-700 dark:!bg-green-700 dark:hover:!bg-green-800"+ >+ Use cloud storage from $9+ </a>+ </div>+ )}+ </div>+<div className="mt-3 flex">{isUnsaved && !isTestConnectionSuccess ? (<Button