docs: backup & restore updates

This commit is contained in:
Ben Allfree
2024-02-24 05:01:08 -08:00
parent 14d473ec05
commit 5ea0a71585
2 changed files with 5 additions and 31 deletions

View File

@@ -1,23 +0,0 @@
---
title: Backup & Restore
category: usage
description: Learn how to perform backup and restore operations for your
PocketHost projects using FTP. This guide provides step-by-step instructions
on how to ensure data safety and continuity for your PocketBase instances by
backing up and restoring your work efficiently. Empower your projects with
robust data management best practices.
---
You can use [FTP](/docs/usage/ftp/) to perform backup and restore operations.
## Before you Begin
Make sure your PocketHost instance status is [idle](/docs/usage/instances/#on-demand-execution).
## Backing Up
## Restoring
## Synchronizing
- [SO article about using lftp to sync](https://askubuntu.com/questions/758640/how-to-automatically-sync-the-contents-of-a-local-folder-with-the-contents-of-a)

View File

@@ -24,16 +24,13 @@ You may change this using the Danger Zone in the instance details.
Sometimes, the automated upgrade is not possible or may leave your PocketHost instance in an unresponsive state because PocketBase exits when it notices a problem with the database schema. In that case, you must perform a manual upgrade.
1. [Back up your instance](/docs/usage/backup-and-restore/)
2. Put the instance in [Maintenance Mode](/docs/usage/maintenance/)
3. Update your instance to the target version you want.
4. Download your database via [FTP](/docs/usage/ftp/)
5. On your local machine, perform whatever upgrade steps are necessary according to the PocketBase documentation
6. Upload your database via FTP again
7. Take the instance out of Maintenance Mode and test
1. [Back up your instance](https://pocketbase.io/docs/going-to-production/#backup-and-restore) via the PocketBase admin
2. Download your database backup via the PocketBase admin
3. On your local machine, perform whatever upgrade steps are necessary according to the PocketBase documentation
4. Perform a backup locally
5. Restore the backup via the live PocketBase admin
## Caveats
- Downgrading to an earlier version may work in some cases, but is not advised. See [#271](https://github.com/pocketbase/pocketbase/discussions/2710#discussioncomment-6185502) for further details.
- In some cases, you may need to
- When a new version of PocketHost is run for the first time, it may run migrations on its system tables. These migrations are typically non-destructive