arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
678 stars 143 forks source link

Arkmanager restore on previous backup reverts to new world #1237

Open ecterun opened 1 year ago

ecterun commented 1 year ago

I am having an issue where when i restore a backup, I am not getting any of the world saved data.

I have run the backup feature, and when trying to restore from that backup the world is empty. (no structures, no tamed dinos)

The message when running the restore came back as all [OK] so unsure if there is any other data beyond the map.ark that needs to be transferred.

klightspeed commented 1 year ago

If you list the contents of the backup (tar -tjvf backup.tar.bz2), does it contain the ark world file matching the map name you have configured on the server you are trying to restore it to?

ecterun commented 1 year ago

It does contain the map world file matching the map name that is configured on the server. In this case its Fjordur.

$ tar -tjvf main.2022-10-05_21.32.47.tar.bz2
drwxr-xr-x steam/steam       0 2022-10-05 16:32 2022-10-05_21.32.47/
-rw------- steam/steam     191 2022-09-28 08:59 2022-10-05_21.32.47/Game.ini
-rw------- steam/steam    5573 2022-09-30 19:38 2022-10-05_21.32.47/76561198013217798.arkprofile
-rw------- steam/steam   38708 2022-10-05 13:46 2022-10-05_21.32.47/76561198038438283.arkprofile
-rw------- steam/steam 44690598 2022-10-05 16:22 2022-10-05_21.32.47/Fjordur.ark
-rw------- steam/steam    38205 2022-10-05 15:30 2022-10-05_21.32.47/1730418678.arktribe
-rw------- steam/steam    32125 2022-10-05 16:20 2022-10-05_21.32.47/76561198213652884.arkprofile
-rw------- steam/steam     5639 2022-09-28 08:54 2022-10-05_21.32.47/GameUserSettings.ini
klightspeed commented 1 year ago

I just tested and an empty world starting in the Vardiland North (Easy) zone (with the obligatory first-spawn death), and the saved world was 42MB.

Do any earlier backups have a Fjordur.ark file larger than 44MB?

ecterun commented 1 year ago

Currently my save is 47MB. Is the thought that this might not be my actual save file and it might be stored somewhere else?

47034005 Oct 14 10:38 Fjordur.ark

klightspeed commented 1 year ago

I suspect that either an extinction occurred, or a wipe was done, before that 44MB backup was done.

In my testing, doing a DestroyAllEnemies reduced the save size from 42MB to 1.6MB

ecterun commented 1 year ago

Looking at ../server/ShooterGame/Saved/SavedArks these are the files that are currently written.

-rw-------. 1 steam steam    35385 Oct 19 17:35 1730418678.arktribe
-rw-------. 1 steam steam    35334 Oct 19 17:00 1730418678.tribebak
-rw-------. 1 steam steam     5573 Oct  1 00:38 76561198013217798.arkprofile
-rw-------. 1 steam steam    38239 Oct 19 17:48 76561198038438283.arkprofile
-rw-------. 1 steam steam    38264 Oct 19 17:00 76561198038438283.profilebak
-rw-------. 1 steam steam    36048 Oct 18 19:49 76561198213652884.arkprofile
-rw-------. 1 steam steam    36456 Oct 18 18:47 76561198213652884.profilebak
-rw-------. 1 steam steam 47724426 Oct 20 13:13 Fjordur.ark
-rw-------. 1 steam steam 47468532 Oct 18 17:28 Fjordur_18.10.2022_17.28.30.ark
-rw-------. 1 steam steam 47566623 Oct 18 19:38 Fjordur_18.10.2022_19.38.30.ark
-rw-------. 1 steam steam 47561180 Oct 18 21:48 Fjordur_18.10.2022_21.48.30.ark
-rw-------. 1 steam steam 47568277 Oct 18 23:58 Fjordur_18.10.2022_23.58.30.ark
-rw-------. 1 steam steam 47559337 Oct 19 03:08 Fjordur_19.10.2022_03.08.30.ark
-rw-------. 1 steam steam 47696772 Oct 19 05:18 Fjordur_19.10.2022_05.18.30.ark
-rw-------. 1 steam steam 47705289 Oct 19 07:28 Fjordur_19.10.2022_07.28.30.ark
-rw-------. 1 steam steam 47705289 Oct 19 09:38 Fjordur_19.10.2022_09.38.30.ark
-rw-------. 1 steam steam 47705289 Oct 19 11:48 Fjordur_19.10.2022_11.48.30.ark
-rw-------. 1 steam steam 47705314 Oct 19 13:58 Fjordur_19.10.2022_13.58.30.ark
-rw-------. 1 steam steam 47691118 Oct 19 16:08 Fjordur_19.10.2022_16.08.30.ark
-rw-------. 1 steam steam 47728928 Oct 19 18:18 Fjordur_19.10.2022_18.18.30.ark
-rw-------. 1 steam steam 47725784 Oct 19 20:28 Fjordur_19.10.2022_20.28.30.ark
-rw-------. 1 steam steam 47725785 Oct 19 22:38 Fjordur_19.10.2022_22.38.30.ark
-rw-------. 1 steam steam 47725785 Oct 20 00:48 Fjordur_20.10.2022_00.48.30.ark
-rw-------. 1 steam steam 47725517 Oct 20 02:58 Fjordur_20.10.2022_02.58.30.ark
-rw-------. 1 steam steam 47725517 Oct 20 05:08 Fjordur_20.10.2022_05.08.30.ark
-rw-------. 1 steam steam 47725249 Oct 20 07:18 Fjordur_20.10.2022_07.18.30.ark
-rw-------. 1 steam steam 47725249 Oct 20 09:28 Fjordur_20.10.2022_09.28.30.ark
-rw-------. 1 steam steam 47724962 Oct 20 11:38 Fjordur_20.10.2022_11.38.30.ark
-rw-------. 1 steam steam 47569160 Oct 19 00:58 Fjordur_AntiCorruptionBackup.bak
-rw-------. 1 steam steam 47569160 Oct 19 01:13 Fjordur_NewLaunchBackup.bak

You can see the save game backups seem to be growing over time, and the server continues to function. All of our tamed dinos and structures persist. But if I take that backup data and upload it to another install of arkmanager I get a fresh world with no tamed dinos / structures. I will be able to use the existing character I have built, so it is correctly loading the .arkprofile

klightspeed commented 1 year ago

If you copy the *.arkprofile, *.arktribe, and Fjordur.ark files to the ShooterGame/Saved/SavedArks directory on the new install, copy the *.ini files from the ShooterGame/Saved/Config/LinuxServer to the new install, and copy the instance config (editing as necessary), does the same thing occur?