Skip to content

Instantly share code, notes, and snippets.

@woeisme
woeisme / VS_backup_script.sh
Last active April 22, 2026 01:10
a quick and dirty Vintage Story backup script.
#!/bin/bash
#what we're trying to do here:
#run the /genbackup command every 12 hours to backup the game world, additionally go through the folder and keep only the last 30 days backups (roughly 300Mb per save atm, could grow)
#We'll also create a folder within /Backups (perhaps /Monthly or /Weekly) that copies in just one file per week / month after the 30 day limit and compress them with tar (or better zstd)
# tar -I "zstdmt" -cvf default.vcdbs.tar.zst default.vcdbs
# this needs to be added using
# crontab -e 30 8 * * * /home/USERNAME/docker-vintage-story/VS_backup_script.sh
# crontab -e 30 20 * * * /home/USERNAME/docker-vintage-story/VS_backup_script.sh
#THIS IS STILL VERY MUCH A WORK IN PROGRESS, YOU HAVE BEEN WARNED

Keybase proof

I hereby claim:

  • I am woeisme on github.
  • I am kupo (https://keybase.io/kupo) on keybase.
  • I have a public key whose fingerprint is EE74 5CFE 3C1E BCB1 6743 9909 9265 2239 5875 A198

To claim this, I am signing this object: