Created
September 21, 2024 17:23
-
-
Save vodolaz095/ea7847d4ad9d27a72666e11155b335f5 to your computer and use it in GitHub Desktop.
Backup Valheim user data on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script makes local copy of all Valheim user's data | |
set -e | |
fname=`date "+%Y_%m_%d___%H_%M_%S"` | |
fpath="$HOME/Documents/backups/valheim/valheim_$fname.zip" | |
echo "Preparing to make backup into $fpath..." | |
zip $fpath \ | |
$HOME/.config/unity3d/IronGate/Valheim/characters/* \ | |
$HOME/.config/unity3d/IronGate/Valheim/characters_local/* \ | |
$HOME/.config/unity3d/IronGate/Valheim/worlds/* \ | |
$HOME/.config/unity3d/IronGate/Valheim/worlds_local/* | |
echo "\nValheim backup created in $fpath!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment