azixus / ARK_Ascended_Docker

Docker image to run an ARK Survival Ascended server on Linux
MIT License
59 stars 11 forks source link

Backup fails because files get changed while creating archive #18

Closed NIREKI closed 7 months ago

NIREKI commented 7 months ago
./manager.sh backup
Creating backup. Backups are saved in your ./ark_backup volume.
Saving world...
Success!
tar: Saved/SavedArks/TheIsland_WP: file changed as we read it
creating backup failed

tar -xvzf backup_2023-11-09_19-18-57.tar.gz -C /etc
Saved/
Saved/SavedArks/
Saved/SavedArks/TheIsland_WP/
Saved/SavedArks/TheIsland_WP/1117001778.arktribe
Saved/SavedArks/TheIsland_WP/TheIsland_WP_AntiCorruptionBackup.bak
Saved/SavedArks/TheIsland_WP/000278f385e04ec9b32b97413f9a54ab.arkprofile
Saved/SavedArks/TheIsland_WP/TheIsland_WP_07.11.2023_21.24.45.ark
Saved/SavedArks/TheIsland_WP/TheIsland_WP_05.11.2023_22.17.23.ark
Saved/SavedArks/TheIsland_WP/TheIsland_WP.ark
Saved/SavedArks/TheIsland_WP/000278dff5174a16a29ca2a11b52a900.arkprofile
Saved/SavedArks/TheIsland_WP/1117001778.tribebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_04.11.2023_20.58.20.ark
Saved/SavedArks/TheIsland_WP/000278dff5174a16a29ca2a11b52a900.profilebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_04.11.2023_23.08.20.ark
Saved/SavedArks/TheIsland_WP/000278f385e04ec9b32b97413f9a54ab.profilebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_05.11.2023_20.07.23.ark
Saved/Logs/
.......

When the savegame is more progressed just saving the gamefiles and creating the backup doesn't work.

It seems like it's nessecary to stop the gameserver. Another possible solution seems to be first copying the /Saved dir to a temp folder and then using tar on that temp folder.

NIREKI commented 7 months ago

Should be fixed with commit #a85a9cb