mirror of
https://github.com/immich-app/immich.git
synced 2026-01-23 18:08:54 -08:00
feedback
This commit is contained in:
@@ -7,6 +7,10 @@ import Icon from '@mdi/react';
|
||||
|
||||
A [3-2-1 backup strategy](https://www.backblaze.com/blog/the-3-2-1-backup-strategy/) is recommended to protect your data. You should keep copies of your uploaded photos/videos as well as the Immich database for a comprehensive backup solution. This page provides an overview on how to backup the database and the location of user-uploaded pictures and videos. A template bash script that can be run as a cron job is provided [here](/guides/template-backup-script.md)
|
||||
|
||||
:::danger
|
||||
The instructions on this page show you how to prepare your Immich instance to be backed up, and which files to take a backup of. You still need to take care of using an actual backup tool to make a backup yourself.
|
||||
:::
|
||||
|
||||
## Database
|
||||
|
||||
Immich stores [file paths](https://github.com/immich-app/immich/discussions/3299) and user metadata in the database. It does not scan the library folder, so database backups are essential.
|
||||
@@ -58,17 +62,38 @@ Restoring a backup will wipe the current database and replace it with the backup
|
||||
|
||||
If you're setting up Immich on a fresh installation and want to restore from an existing backup:
|
||||
|
||||
1. Download and populate `.env` and `docker-compose.yml` as per the [installation instructions](/install/docker-compose).
|
||||
2. Move the previous's instance data directories containing `backups`, `encoded-video`, `library`, `profile`, `thumbs` and `upload` into the new `UPLOAD_LOCATION`
|
||||
3. **(For external libraries)** If you used external library feature in your previous instance, make sure that the mount settings in your new `docker-compose.yml` reflect the same structure. You may need to move files accordingly.
|
||||
|
||||
:::info Example
|
||||
|
||||
Assuming your previous `UPLOAD_LOCATION` was `UPLOAD_LOCATION=/my-broken-instance/media` and your new one is `UPLOAD_LOCATION=/a-brand-new-instance/data`, you will need to perform the following file moves:
|
||||
|
||||
```
|
||||
/my-broken-instance/media/backups -> /a-brand-new-instance/data/backups
|
||||
/my-broken-instance/media/encoded-video -> /a-brand-new-instance/data/encoded-video
|
||||
/my-broken-instance/media/library -> /a-brand-new-instance/data/library
|
||||
/my-broken-instance/media/profile -> /a-brand-new-instance/data/profile
|
||||
/my-broken-instance/media/thumbs -> /a-brand-new-instance/data/thumbs
|
||||
/my-broken-instance/media/upload -> /a-brand-new-instance/data/upload
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
4. Start the Immich services with `docker compose up -d`
|
||||
|
||||
<img
|
||||
src={require('./img/restore-from-onboarding.webp').default}
|
||||
title="Restore from onboarding"
|
||||
/>
|
||||
|
||||
1. On the welcome screen, click **Restore from backup**
|
||||
2. Immich will enter maintenance mode and display integrity checks for your storage folders
|
||||
3. Review the folder status to ensure your library files are accessible
|
||||
4. Click **Next** to proceed to backup selection
|
||||
5. Select a backup from the list or upload a backup file (`.sql.gz`)
|
||||
6. Click **Restore** to begin the restoration process
|
||||
5. On the welcome screen, click **Restore from backup**
|
||||
6. Immich will enter maintenance mode and display integrity checks for your storage folders
|
||||
7. Review the folder status to ensure your library files are accessible
|
||||
8. Click **Next** to proceed to backup selection
|
||||
9. Select a backup from the list or upload a backup file (`.sql.gz`)
|
||||
10. Click **Restore** to begin the restoration process
|
||||
|
||||
:::tip
|
||||
Before restoring, ensure your `UPLOAD_LOCATION` folders contain the same files that existed when the backup was created. The integrity check will show you which folders are readable/writable and how many files they contain.
|
||||
|
||||
@@ -11,7 +11,7 @@ Contextual CLIP search is powered by the [VectorChord](https://github.com/tensor
|
||||
|
||||
In addition, Immich offers advanced search functionality, allowing you to find specific content using customizable search filters. These filters include location, one or more faces, specific albums, and more. You can try out the search filters on the [Demo site](https://demo.immich.app).
|
||||
|
||||
You can mix and match to search the following types of content:
|
||||
You can search the following types of content:
|
||||
|
||||
| Type | Description |
|
||||
| ----------------------------------- | ----------------------------------------------------- |
|
||||
|
||||
@@ -7,3 +7,7 @@
|
||||
<img src={require('./img/album-selection.webp').default} width='50%' title='Backup button' />
|
||||
|
||||
3. Scroll down to the bottom and press "**Enable Backup**" to start the backup process. This will upload all the assets in the selected albums.
|
||||
|
||||
:::info
|
||||
You can read more about backup options [here](/features/mobile-backup.md).
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user