Auto backup (ZIP archive) of your saves in Last Epoch (LINUX)

Auto backup (ZIP archive) of your saves in Last Epoch (LINUX) 1 - steamsplay.com
Auto backup (ZIP archive) of your saves in Last Epoch (LINUX) 1 - steamsplay.com

Auto backup (ZIP archive) of your saves in Last Epoch (LINUX)

Hey, want to make sure you never lose your game progress in Last Epoch? I’ve got a cool trick for you. It’s about setting up a little Bash script that does all the heavy lifting for you. Here’s how you can get it done:

1. First, whip up a new file and call it “script.sh”.

2. Then, pop this script into your new file:

bash
#!/bin/bash
# Steam ID of the game
steam_id=899770
# Name of the game (used for the archive)
game_name="last_epoch"
# Path to the folder with your game's save files
folder_path='/home/xeofox/.config/unity3d/Eleventh Hour Games/Last Epoch'
# Where we'll keep the backups
backup_path='/mnt/500gb/backup/le'
d_time=$(date +%F_%T)
zip -r "$game_name-$d_time.zip" "$folder_path"
mv "$game_name-$d_time.zip" "$backup_path"
exec steam steam://"rungameid/$steam_id"

3. Make sure to change the `folder_path` to where your saves are chilling. Just follow the example I gave you.

4. Also, tweak the `backup_path` to point to your chosen backup spot. Again, just like the sample.

5. Hit save on that file.

6. Now, whenever you kick off the game with this script, it’ll automatically save a copy of your progress. Handy, right?

Oh, and by the way, if you’re into other games, this script is super easy to adjust. Just swap out the `steam_id` and the folder path to match your game.

Creating a .desktop File for Launching the Bash Script

Want an even easier way to launch your game with backups ready to go? Let’s make a .desktop file. Here’s the step-by-step:

1. Create a new file and name it “LE.desktop”.

2. Copy this into your file:

[Desktop Entry]
Name=LE
Exec=/home/xeofox/.../script.sh %f
Icon=/home/xeofox/.../le_icon.png
Terminal=false
Type=Application
Categories=Game

3. In the `Exec` line, make sure it points to your “script.sh”.

4. For the `Icon` line, point it to your game icon in PNG format.

5. Save that file, and voilà, you’ve got a snazzy new shortcut to start your game with backups all set.


Be the first to comment

Leave a Reply

Your email address will not be published.


*