@ -44,7 +44,7 @@ The consequence of this change is that *all* data stored in the - now unsupporte
The new `.env` file for Docker is a bit different from the old one (many new settings!) so the easiest is to grab the new `.env.docker` file and modify it from scratch again.
The new `.env` file for Docker is a bit different from the old one (many new settings!) so the easiest is to grab the new `.env.docker` file and modify it from scratch again.
Update your project to the latest release of Pixelfed by running
Update your project to the latest release of Pixelfed by running
```shell
```bash
$ git pull origin $release
$ git pull origin $release
```
```
Where `$release` is either `dev`, `staging` or a [tagged release](https://github.com/pixelfed/pixelfed/releases) such as `v0.12.0`.
> [!NOTE]
> The `$release` can be any valid git reference like `dev`, `staging` or a [tagged release](https://github.com/pixelfed/pixelfed/releases) such as `v0.12.0`.
#### Step 4. Run the migration container
#### Step 4. Run the migration container
You can access the Docker container with both old and new volumes by running the following command
You can access the Docker container with both old and new volumes by running the following command
```shell
```bash
$ docker compose -f docker-compose.migrate.yml run migrate bash
$ docker compose -f docker-compose.migrate.yml run migrate bash
```
```
@ -120,7 +121,7 @@ This will put you in the `/migrate` directory within the container, containing 8
The following commands should all return *SOME* files and data - if they do not - then there might be an issue with the anonymous volume binding.
The following commands should all return *SOME* files and data - if they do not - then there might be an issue with the anonymous volume binding.
```shell
```bash
$ ls app-storage/old
$ ls app-storage/old
$ ls db-data/old
$ ls db-data/old
$ ls redis-data/old
$ ls redis-data/old
@ -132,7 +133,7 @@ The following commands should all return *NO* files and data - if they contain d
If you haven't run `docker compose up` since you updated your project in step (2) - they should be empty and good to go.
If you haven't run `docker compose up` since you updated your project in step (2) - they should be empty and good to go.
```shell
```bash
$ ls app-storage/new
$ ls app-storage/new
$ ls db-data/new
$ ls db-data/new
$ ls redis-data/new
$ ls redis-data/new
@ -155,7 +156,7 @@ The migration container has [`rsync`](https://www.digitalocean.com/community/tut
Lets copy the data by running the following commands:
Lets copy the data by running the following commands:
```shell
```bash
$ rsync -avP app-storage/old/ app-storage/new
$ rsync -avP app-storage/old/ app-storage/new
$ rsync -avP db-data/old/ db-data/new
$ rsync -avP db-data/old/ db-data/new
$ rsync -avP redis-data/old/ redis-data/new
$ rsync -avP redis-data/old/ redis-data/new
@ -169,21 +170,21 @@ Each *new* directory should contain *something* like (but not always exactly) th
The **redis-data/new** directory might also contain a `server.pid`
The **redis-data/new** directory might also contain a `server.pid`
```shell
```bash
$ ls redis-data/new
$ ls redis-data/new
appendonlydir
appendonlydir
```
```
The **app-storage/new** directory should look *something* like this
The **app-storage/new** directory should look *something* like this
The **db-data/new** directory should look *something* like this. There might be a lot of files, or very few files, but there *must* be a `mysql`, `performance_schema`, and `${DB_DATABASE}` (e.g. `pixelfed_prod` directory)
The **db-data/new** directory should look *something* like this. There might be a lot of files, or very few files, but there *must* be a `mysql`, `performance_schema`, and `${DB_DATABASE}` (e.g. `pixelfed_prod` directory)