From 026b9f20db1ca0962ec769062f9cffc18887c9df Mon Sep 17 00:00:00 2001 From: igorbenko Date: Wed, 27 Nov 2024 14:47:58 +0100 Subject: [PATCH] Add an alternative approach to create a migration package --- docs/self-hosted/kubernetes-migration-guide.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/self-hosted/kubernetes-migration-guide.md b/docs/self-hosted/kubernetes-migration-guide.md index 10888020..a061f728 100644 --- a/docs/self-hosted/kubernetes-migration-guide.md +++ b/docs/self-hosted/kubernetes-migration-guide.md @@ -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.