Skip to content

Manual Backups #232

Answered by lloesche
p-karanthaker asked this question in Q&A
Mar 16, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, sending SIGHUP to the valheim-backup service or restarting the service will create a backup.
The PID of the running service can be found in /var/run/valheim-backup.pid

Assuming your container's name is valheim-server here's how both would work:

Sending SIGHUP using supervisorctl (the most graceful way of making a backup)

docker exec -it valheim-server supervisorctl signal HUP valheim-backup

Sending SIGHUP manually (as graceful as before but more "manual" work)

docker exec -it valheim-server bash -c 'kill -HUP $(< /var/run/valheim-backup.pid)'

Restarting valheim-backup (the more brute force way)

docker exec -it valheim-server supervisorctl restart valheim-backup

The restart can als…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@p-karanthaker
Comment options

Answer selected by p-karanthaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants