Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/self-hosted/kubernetes-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ docker exec -it packagist-ui rm /tmp/storage.tar.gz
docker stop packagist-ui
```

In case you run into timeout problems while running the `migrate-storage` command, we offer an alternative approach
using only the `tar` command.

```
# The following commands may require root permissions
docker stop packagist-ui
cd /data/packagist

# Ensure all needed folders are present
mkdir -p artifacts composer

# Replace YOUR_BACKUP_PATH with the path you wish to save the backup to
tar -cvzf YOUR_BACKUP_PATH/packagist_storage.tar.gz --transform s/^composer/dist/ --transform s/^artifacts/artifact/ composer artifacts
```


### Backup the PostgreSQL database

At the end of this step, you should have a `packagist_db.sql` file in your working directory.
Expand Down