lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.96k stars 276 forks source link

Backups include auto backups in zip files #700

Open barnhill opened 2 months ago

barnhill commented 2 months ago

When the backups are zipped it is including the entire worlds folder contents which includes the auto backups the server is doing itself in the zip files. This bloats the zipped backups that this container is doing.

Here is the line in question in valheim-backup

zip -r "$backup_file" "$WORLDS_DIR/"

Maybe it should just include the current db and fwl file?

Screenshot 2024-09-03 at 11 19 57 AM

Maybe a filter to not include files with backup in the name?

barnhill commented 2 months ago

Maybe as simple as using this command ... unsure as I havent tested it locally

zip -r "$backup_file" "$WORLDS_DIR/" -x *backup*.*