-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified README.md, added a small tutorial on how to restore game s…
…aves & added lots of new features like auto-add Launch Options to Steam games
- Loading branch information
Showing
6 changed files
with
246 additions
and
107 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# /!\ Please modify the following variables with values that matches with your environment /!\ | ||
# | ||
# When [MANDATORY] is mentionned, that means that you have to fill in this variable | ||
# with what is described in the comment above it. | ||
# On the other hand, if there's no indication, that means the variable is optional | ||
# and you could leave it blank (""), but you accept the default values! | ||
# (see 'init-steam-backup-vars.sh' for details) | ||
|
||
# Path to the project's git repository (where to install/find it) | ||
export STEAM_BKUPER_DIR="/home/deck/share/steam-bkuper" | ||
# Path to your game saves' git repository | ||
export STEAM_SAVES_DIR="/home/deck/.local/share/steam-saves" | ||
# URL to the remote project's git repository | ||
export STEAM_BKUPER_REPO="https://github.com/AngeIo/steam-bkuper" | ||
# [MANDATORY] URL to your remote game saves' git repository | ||
export STEAM_SAVES_REPO="https://github.com/AngeIo/steam-saves" | ||
# URL to your second remote game saves' git repository | ||
export STEAM_SAVES_REPO2="https://gitlab.com/AngeIo/steam-saves" | ||
# Path to your Steam's userdata directory | ||
export STEAM_PATH="/home/deck/.local/share/Steam/userdata" | ||
# Your Steam AccountID/Friend Code (found on websites like https://steamcommunity.com/id/YOUR_USERNAME/friends/add or https://steamdb.info/calculator/) | ||
export STEAM_ACCOUNTID="99648215" | ||
# Launch options to set on all your Steam library. If set to "NULL", launch options are not set automatically. | ||
export STEAM_LOPTS="NULL" | ||
# /!\ Please leave this variable BLANK! It will set itself automatically! They are the last launch options that was set on all your Steam library (used to check if necessary to apply launch options) | ||
export STEAM_LAST_LOPTS="" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if [ -f "$HOME/steam-backup.env" ];then | ||
export $(grep -v '^#' ~/steam-backup.env | xargs) | ||
if [ -f "$HOME/steam-bkuper.env" ]; then | ||
export $(grep -v '^#' ~/steam-bkuper.env | xargs) | ||
fi | ||
|
||
export BIN_DIR="$HOME/bin" | ||
mkdir -p $BIN_DIR | ||
|
||
export STEAM_BKUPER_DIR="${STEAM_BKUPER_DIR:-$HOME/.local/share/steam-bkuper}" | ||
export STEAM_SAVES_DIR="${STEAM_SAVES_DIR:-$HOME/.local/share/steam-saves}" | ||
export STEAM_BKUPER_REPO="${STEAM_BKUPER_REPO:-'https://github.com/AngeIo/steam-bkuper'}" | ||
export STEAM_SAVES_REPO="${STEAM_SAVES_REPO:?}" | ||
export BIN_DIR="$HOME/bin" | ||
|
||
mkdir -p $BIN_DIR | ||
export STEAM_PATH="${STEAM_PATH:-'/home/deck/.local/share/Steam/userdata'}" | ||
export STEAM_LOPTS="${STEAM_LOPTS:-%command%;$BIN_DIR/my-steam-backup.sh}" | ||
|
||
# Uncomment for debugging | ||
# echo "STEAM_BKUPER_DIR = $STEAM_BKUPER_DIR" | ||
# echo "STEAM_SAVES_DIR = $STEAM_SAVES_DIR" | ||
# echo "STEAM_BKUPER_REPO = $STEAM_BKUPER_REPO" | ||
# echo "STEAM_SAVES_REPO = $STEAM_SAVES_REPO" | ||
# echo "STEAM_SAVES_REPO2 = $STEAM_SAVES_REPO2" | ||
# echo "BIN_DIR = $BIN_DIR" | ||
# echo "STEAM_PATH = $STEAM_PATH" | ||
# echo "STEAM_ACCOUNTID = $STEAM_ACCOUNTID" | ||
# echo "BIN_DIR = $BIN_DIR" | ||
# echo "STEAM_LOPTS = $STEAM_LOPTS" | ||
# echo "STEAM_LAST_LOPTS = $STEAM_LAST_LOPTS" |
This file contains 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
Oops, something went wrong.