Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (storages): Remove storages limitation warning

Rostislav Dugin66cf5431c501
diff --git a/README.md b/README.md
index db698a00..c8099bca 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>PostgreSQL backup tool (with MySQL\MariaDB and MongoDB support)</h3>
+ <h3>Database backup tool (PostgreSQL, MySQL\MariaDB and MongoDB)</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.tsx
index 9693b143..87c1ea93 100644
--- a/frontend/src/features/backups/ui/BackupsComponent.tsx
+++ b/frontend/src/features/backups/ui/BackupsComponent.tsx
@@ -569,17 +569,6 @@ 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.tsx
index 534cb8d9..1b6312b4 100644
--- a/frontend/src/features/storages/ui/StoragesComponent.tsx
+++ b/frontend/src/features/storages/ui/StoragesComponent.tsx
@@ -1,8 +1,6 @@
-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';
@@ -102,31 +100,6 @@ 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) => (
<StorageCardComponent
key={storage.id}
diff --git a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
index c9727eeb..e74ed80c 100644
--- a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
+++ b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
@@ -1,4 +1,4 @@
-import { ExclamationCircleOutlined, InfoCircleOutlined } from '@ant-design/icons';
+import { InfoCircleOutlined } from '@ant-design/icons';
import { Button, Input, Select, Switch, Tooltip } from 'antd';
import { useEffect, useState } from 'react';
@@ -491,33 +491,6 @@ 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