Hello! I need to migrate an existing virtual machine winget.pro deployment to the production sever. I have about 85GB of manually downloaded packages (heavy enterprise installers like .exe, .msi, and .zip) and want to ensure a smooth transition without breaking paths or corrupting the database.
Current Environment Details:
- OS: Debian 12 (bookworm)
- Web Server: Nginx (proxying to Gunicorn via
unix:/var/run/django/gunicorn.sock)
- App Framework: Django (project root located at
/srv/)
- Database: SQLite (
django.db.backends.sqlite3)
- Docker: Not used (native installation).
Migration Questions:
- Database Transfer: Since the backend is SQLite, is it completely safe to just stop Gunicorn/Nginx and
rsync the .sqlite3 file to the new server, or do you recommend using Django's dumpdata/loaddata for a winget.pro specific migration?
- Bulk Package Migration (85GB): All the heavy installers are currently in the project directories. Is a standard
rsync -avz sufficient to move the entire /srv/ directory to the new host, or are there specific symlinks, hardlinks, or ownership permissions (e.g., for the django user) I must strictly recreate?
- Systemd / Gunicorn Socket: My current Nginx config points to
unix:/var/run/django/gunicorn.sock. When setting up the new server, what is the standard method or script provided by winget.pro to generate the Gunicorn systemd service so that the socket is created with the correct permissions?
Any advice, scripts, or documentation links for migrating a bare-metal setup would be highly appreciated. Thank you!
Hello! I need to migrate an existing virtual machine
winget.prodeployment to the production sever. I have about 85GB of manually downloaded packages (heavy enterprise installers like .exe, .msi, and .zip) and want to ensure a smooth transition without breaking paths or corrupting the database.Current Environment Details:
unix:/var/run/django/gunicorn.sock)/srv/)django.db.backends.sqlite3)Migration Questions:
rsyncthe.sqlite3file to the new server, or do you recommend using Django'sdumpdata/loaddatafor a winget.pro specific migration?rsync -avzsufficient to move the entire/srv/directory to the new host, or are there specific symlinks, hardlinks, or ownership permissions (e.g., for thedjangouser) I must strictly recreate?unix:/var/run/django/gunicorn.sock. When setting up the new server, what is the standard method or script provided by winget.pro to generate the Gunicorn systemd service so that the socket is created with the correct permissions?Any advice, scripts, or documentation links for migrating a bare-metal setup would be highly appreciated. Thank you!