Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server backups persisting? #990

Open
MrQu33f opened this issue Nov 5, 2024 · 8 comments
Open

Server backups persisting? #990

MrQu33f opened this issue Nov 5, 2024 · 8 comments
Labels
awaiting response Waiting for someone or something to respond

Comments

@MrQu33f
Copy link

MrQu33f commented Nov 5, 2024

Hi there,

I've been away and found my server had shutdown. Back now and restarted it but it seems to not be stuck on version 0.218.21
I'm not brilliant with containers etc. I'm running them from Portainer as a stack as follows:
Is the image updated or am I doing something wrong?

version: "3"
services:

valheim:
container_name: Valheim-stack
image: mbround18/valheim:latest
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
TYPE: Vanilla
PORT: 2456
NAME: *********
WORLD: *********
PASSWORD: *******
MODIFIERS: portals=casual
ENABLE_CROSSPLAY: 1
TZ: *********
PUBLIC: 1
AUTO_UPDATE: 0
AUTO_UPDATE_SCHEDULE: "0 1 * * "
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "
/15 * * * "
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 3
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
UPDATE_ON_STARTUP: 0
restart: unless-stopped
volumes:
- /
/:/home/steam/.config/unity3d/IronGate/Valheim
- /
/:/home/steam/valheim
- /
********/:/home/steam/backups

@MrQu33f
Copy link
Author

MrQu33f commented Nov 5, 2024

nevermind, I just deleted the folder except for world data and repulled. All working now

@mbround18
Copy link
Owner

Good to close?

@MrQu33f
Copy link
Author

MrQu33f commented Nov 8, 2024

Yup all's well

@MrQu33f
Copy link
Author

MrQu33f commented Nov 11, 2024

I do have another issue thats arose over the last few days.
My docker storage volume was full and after investigating I realised it was valheims backup folder was what was doing it.
this is my stack:

version: "3"
services:
valheim:
container_name: Valheim-stack
image: mbround18/valheim:latest
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
TYPE: Vanilla
PORT: 2456
NAME: Egg with Legs Dedicated Ashlands Server
WORLD: Egg with Legs
PASSWORD: ********
MODIFIERS: portals=casual
ENABLE_CROSSPLAY: 1
TZ: EUROPE/LONDON
PUBLIC: 1
AUTO_UPDATE: 1
AUTO_UPDATE_SCHEDULE: "0 1 * "
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "0 1 * "
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 3
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
UPDATE_ON_STARTUP: 0
restart: always
volumes:
- /srv/Appdata/valheim-al/:/home/steam/.config/unity3d/IronGate/Valheim
- /srv/Appdata/valheim-al/:/home/steam/valheim
- /srv/Appdata/valheim-al/backups/:/home/steam/backups

I modified it the other day to reduce the frequency but fear i've done something wrong. I just looked and saw it was taking a backup and in the backup folder the latest tar.gz file was being generated and was over 500gb??

I've made a new stack as per Claude.ai suggestions but in the mean time is there anything absurd that i'm missing?

version: "3"
services:

valheim:
container_name: Valheim-stack
image: mbround18/valheim:latest
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
TYPE: Vanilla
PORT: 2456
NAME: Egg with Legs Dedicated Ashlands Server
WORLD: Egg with Legs
PASSWORD: ********
MODIFIERS: portals=casual
ENABLE_CROSSPLAY: 1
TZ: EUROPE/LONDON
PUBLIC: 1
AUTO_UPDATE: 1
AUTO_UPDATE_SCHEDULE: "0 0 * * 0"
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "0 1 * * *"
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 14
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
UPDATE_ON_STARTUP: 0
restart: always
volumes:
- /srv/Appdata/valheim-al/:/home/steam/.config/unity3d/IronGate/Valheim
- /srv/Appdata/valheim-al/:/home/steam/valheim
- /srv/Data/backup/Valheim-al/backups/:/home/steam/backups

@mbround18
Copy link
Owner

that looks pretty good, could you give me an ls -l in the backup folder?

@mbround18 mbround18 changed the title Server not updating? Server backups persisting? Nov 12, 2024
@MrQu33f
Copy link
Author

MrQu33f commented Nov 12, 2024

I'm away on business, I've got remote desktop on the host so I'll see if I can remote in and do it but my internet is flakey. Fingers crossed I can do it otherwise I'll have to do it in a month when I get back

@mbround18
Copy link
Owner

No worries, ill flag as awaiting response for now while you are on our trip :P

@mbround18 mbround18 added the awaiting response Waiting for someone or something to respond label Nov 13, 2024
@MrQu33f
Copy link
Author

MrQu33f commented Jan 6, 2025

Hi,
I totallyt forgot about this issue but just wanted to drop a message to say that it is all behaving as expected now.
I moved the backup folder to a seperate drive before I left a few months ago and now its maintaining 3x backups that are approx 1.5gb each. Far more manageable than the madness before.
I guess I must've put a wrong variable in my stack or something. Feel free to close the issue :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response Waiting for someone or something to respond
Projects
None yet
Development

No branches or pull requests

2 participants