Skip to content

Commit e3dcd8e

Browse files
author
zone-zero
committed
updated readme
1 parent 8e2d159 commit e3dcd8e

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

charts/factorio-server-charts/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,26 @@ serverPassword:
108108
```
109109
## Importing a save file
110110
111-
> :warning: Importing a save file will **DESTROY THE SERVER SAVEFILE** with the name specified in `factorioServer.save_name`. Import with caution!
111+
> :warning: Importing a save file will **OVERWRITE THE SERVER SAVEFILE** with the name specified in `factorioServer.save_name`. Import with caution!
112112

113-
To import an existing save file, start/restart the pod at least once. This will create the factorio folder structure.
113+
### Importing by URL
114114

115-
Now, copy your existing savegame to the `/factorio/save_to_import/<existing_savegame_name>.zip` on the running pod using whatever mechanism you prefer. To do this with kubectl:
115+
To import your save file from a URL, set `import_save.source_url` to a direct-download link for your savegame. By default, the file will be downloaded and imported only once.
116+
117+
If, on pod intialization, you wish to re-import the file every time the contents of the savegame change, set `import_save.reimport_on_change` to `true`.
118+
:warning: If the savegame at the source url changes, this will overwrite the server save with that file. Use with caution!
119+
120+
If you wish to reimport the save file every time the pod reinitializes, regardless of changes, set `import_save.reimport_every_time` to `true`. This could be useful for demos or testing.
121+
:warning: This will overwrite the server savegame **every time the pod reinitializes**. Use with caution!
122+
123+
### Manual Import
124+
125+
To import an existing save file, start/restart the pod at least once. This will create the import folder structure.
126+
127+
Now, copy the savegame you wish to import to the `/factorio/save-importer/import/<existing_savegame_name>.zip` on the running pod using whatever mechanism you prefer. To do this with kubectl:
116128

117129
```bash
118-
kubectl cp ./my_existing_savegame.zip <namespace>/<pod_name>:/factorio/save_to_import
130+
kubectl cp ./my_existing_savegame.zip <namespace>/<pod_name>:/factorio/save-importer/import
119131
```
120132

121133
Restart the pod again to import your save file.

0 commit comments

Comments
 (0)