The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(studio): improve backup text (#42058)
Danny Whitea6c9b6b99bba
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsxindex d0682d6e124..05f5b0033f9 100644--- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx+++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx@@ -114,9 +114,11 @@ export const BackupItem = ({ index, isHealthy, backup, onSelectBackup }: BackupI<Badge variant="default">{backup.isPhysicalBackup ? 'Physical' : 'Logical'}</Badge></TooltipTrigger><TooltipContent side="bottom">- Learn more about backup types{' '}+ {backup.isPhysicalBackup+ ? 'File-level backups of your entire database.'+ : 'SQL-based backups of your entire database.'}{' '}<InlineLink href="https://supabase.com/blog/postgresql-physical-logical-backups">- here+ Learn more</InlineLink></TooltipContent></Tooltip>diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsxindex d638e7c6f01..bc5308857ad 100644--- a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx+++ b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx@@ -13,6 +13,7 @@ import { useSetProjectStatus } from 'data/projects/project-detail-query'import { useCheckEntitlements } from 'hooks/misc/useCheckEntitlements'import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'import { PROJECT_STATUS } from 'lib/constants'+import { Admonition } from 'ui-patterns/admonition'import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'import { BackupItem } from './BackupItem'import { BackupsEmpty } from './BackupsEmpty'@@ -95,17 +96,12 @@ export const BackupsList = () => {)}</div><ConfirmationModal- size="medium"- confirmLabel="Confirm restore"- confirmLabelLoading="Restoring"+ size="small"+ confirmLabel="Restore"+ confirmLabelLoading="Restoring..."+ variant="warning"visible={selectedBackup !== undefined}- title="Confirm to restore from backup"- alert={{- base: { variant: 'warning' },- title: 'Your project will be offline while the restore is in progress',- description:- 'It is advised to upgrade at a time when there will be minimal impact for your application.',- }}+ title="Restore from backup"loading={isRestoring || isSuccessBackup}onCancel={() => setSelectedBackup(undefined)}onConfirm={() => {@@ -114,11 +110,25 @@ export const BackupsList = () => {restoreFromBackup({ ref: projectRef, backup: selectedBackup })}}>- <p className="text-sm">- Are you sure you want to restore from{' '}- {dayjs(selectedBackup?.inserted_at).format('DD MMM YYYY')}? This will destroy any new data- written since this backup was made.- </p>+ <div className="space-y-3">+ <p className="text-sm">+ This will restore your database to the backup made on{' '}+ {dayjs(selectedBackup?.inserted_at).format('DD MMM YYYY')} at{' '}+ {dayjs(selectedBackup?.inserted_at).format('HH:mm:ss')} UTC.+ </p>++ <Admonition+ showIcon={false}+ type="warning"+ title="This action cannot be undone"+ description={+ <ul className="list-disc list-inside">+ <li>Your project will be offline during restoration</li>+ <li>Any new data since this backup will be lost</li>+ </ul>+ }+ />+ </div></ConfirmationModal></>)diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsStorageAlert.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsStorageAlert.tsxindex 52e0c0184e3..c2edcd30ddd 100644--- a/apps/studio/components/interfaces/Database/Backups/BackupsStorageAlert.tsx+++ b/apps/studio/components/interfaces/Database/Backups/BackupsStorageAlert.tsx@@ -1,14 +1,14 @@-import { AlertDescription_Shadcn_, Alert_Shadcn_, WarningIcon } from 'ui'+import { Admonition } from 'ui-patterns/admonition'export const BackupsStorageAlert = () => {return (- <Alert_Shadcn_ variant="default">- <WarningIcon />- <AlertDescription_Shadcn_>- Database backups do not include objects stored via the Storage API, as the database only+ <Admonition+ type="default"+ layout="horizontal"+ title="Storage objects are not included"+ description="Database backups do not include objects stored via the Storage API, as the database onlyincludes metadata about these objects. Restoring an old backup does not restore objects that- have been deleted since then.- </AlertDescription_Shadcn_>- </Alert_Shadcn_>+ have been deleted since then."+ />)}diff --git a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsxindex 2ef5f010ce9..24e59354934 100644--- a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx@@ -81,7 +81,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {<>{!isPitrEnabled && (<p className="text-sm text-foreground-light">- Projects are backed up daily around midnight of your project's region and+ Projects are backed up daily around midnight of your project’s region andcan be restored at any time.</p>)}diff --git a/apps/www/_blog/2020-07-09-postgresql-templates.mdx b/apps/www/_blog/2020-07-09-postgresql-templates.mdxindex ba9d3e0125d..7e1da31777f 100644--- a/apps/www/_blog/2020-07-09-postgresql-templates.mdx+++ b/apps/www/_blog/2020-07-09-postgresql-templates.mdx@@ -10,7 +10,7 @@ categories:tags:- postgres- planetpg-date: '07-09-2020'+date: '2020-07-09'---Whenever you create a new database in Postgres, you are actually [basing it off an already present database](https://www.postgresql.org/docs/current/manage-ag-templatedbs.html) in your cluster.diff --git a/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx b/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdxindex a9a45b32cb5..263a4ce6986 100644--- a/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx+++ b/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx@@ -10,7 +10,7 @@ categories:tags:- postgres- planetpg-date: '07-07-2020'+date: '2020-07-07'---PostgreSQL backups can be categorized into two types: _logical_ and _physical_. This post briefly covers each type and discusses the situations where you would use either one.diff --git a/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx b/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdxindex b97e210d67a..f97c7fc937e 100644--- a/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx+++ b/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx@@ -10,7 +10,7 @@ categories:tags:- postgres- planetpg-date: '08-02-2020'+date: '2020-08-02'---Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G.