Homelab
Factorio Import Existing Save
Importing an Existing Save to Your Factorio Kubernetes Server
Overview
This article shows how to import an existing Factorio world save into your Kubernetes server. Rather than starting fresh, you can continue an existing factory by uploading your save file and configuring the server to load it on startup.
| Tip: | Having trouble? See v0.11.2 for what your setup should look like after completing this article. |
Before You Begin
Prerequisites
- Factorio Kubernetes Server completed (core server running)
Upload Save File
Copy to Pod
POD=$(kubectl get pod -n factorio -l app=factorio-factorio-server-charts -o jsonpath='{.items[0].metadata.name}')
kubectl cp ~/<path-to-save-file>.zip factorio/$POD:/factorio/saves/ Verify Contents
kubectl exec -n factorio $POD -- ls -la /factorio/saves/ Configure Save Loading
HelmRelease (Update)
Update the save name in k8s/apps/factorio/helmrelease.yaml:
factorioServer:
save_name: 'your-save-name' # Must match uploaded filename (without .zip)
load_latest_save: false # Always load save_name, not most recent Deploy Changes
Commit Changes
cd ~/homelab
git add k8s/apps/factorio/helmrelease.yaml
git commit -m "feat(factorio): switch to existing save"
git push Reconcile Flux
flux reconcile source git flux-system && flux reconcile kustomization sync Verify Save Loaded
Check Logs
POD=$(kubectl get pod -n factorio -l app=factorio-factorio-server-charts -o jsonpath='{.items[0].metadata.name}')
kubectl logs -n factorio $POD -c factorio-factorio-server-charts | grep -i "loading map" Expected:
Loading map /factorio/saves/your-save-name.zip: XXXXXX bytes. Next Steps
For security hardening and user verification: