<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Anarch157a's Blog (Posts about Games)</title><link>https://www.anarch157a.com/</link><description></description><atom:link href="https://www.anarch157a.com/categories/games.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:anarch+nospam@replace_this_by_the_blog_domain.com"&gt;Anarch157a&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 04 Nov 2026 20:27:21 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Syncing game saves with almost any cloud service</title><link>https://www.anarch157a.com/posts/game-cloud-saves/</link><dc:creator>Anarch157a</dc:creator><description>&lt;h4&gt;Edit: New version of the script&lt;/h4&gt;
&lt;p&gt;Check the repository on &lt;a href="https://gitlab.com/Nerdeiro/game-cloud-sync"&gt;https://gitlab.com/Nerdeiro/game-cloud-sync&lt;/a&gt; and follow the 
README.md there.&lt;/p&gt;
&lt;h4&gt;Sync your games to (almost) any cloud service&lt;/h4&gt;
&lt;p&gt;This is a simple Bash script to sync your game-saves with pretty much any cloud storage service out there.
It uses &lt;a href="https://rclone.org/"&gt;Rclone&lt;/a&gt;, which supports dozens (&lt;a href="https://rclone.org/#providers"&gt;not hyperbole&lt;/a&gt;) of providers.&lt;/p&gt;
&lt;p&gt;The motivation to create this script was to sync my copy of Stardew Valley between my desktop
and my Steam Deck. But wait, doesn't Steam do this ? Yes, it does, for copies bought on Steam.
But my copy is from GOG...  It runs just fine on the Deck, regardless if it was installed from
a manual download, with Lutris or Heroic, it only lacks cloud saves.&lt;/p&gt;
&lt;p&gt;This is where this script and &lt;a href="https://lutris.net/"&gt;Lutris&lt;/a&gt; come in. The role Lutris will play
here, is to allow us to run a script both before and after running the game, all without having
to change the default &lt;code&gt;start.sh&lt;/code&gt; lancher script that the GOG installer creates.&lt;/p&gt;
&lt;h4&gt;What you need to use this script&lt;/h4&gt;
&lt;p&gt;In no particular order:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lutris (optional but recommended)&lt;/li&gt;
&lt;li&gt;Rclone&lt;/li&gt;
&lt;li&gt;A cloud service supported by Rclone&lt;/li&gt;
&lt;li&gt;A working remote configuration in Rclone&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you're syncing between two computers, getting Lutris and Rcloneis as easy as installing them
using your distro's package manager. On the Steam Deck, Lutris have to be installed using
Flatpack, after changing to Desktop mode. Rclone is a little bit more challenging, since it's
not on Flathub and the Deck ships with a read-only Root (/) file-system, so using Pacman
to get it is not an option.&lt;/p&gt;
&lt;p&gt;Thankfully, the creators of Rclone have a statically compiled binary on the official website,
which means you can run it on the Deck without any issues, only you'll have to put it
somewhere on the &lt;code&gt;$HOME&lt;/code&gt; directory. To avoid having to fiddle with the &lt;code&gt;$PATH&lt;/code&gt;, I recommend
that after unziping the downloaded file, you move the &lt;code&gt;rclone&lt;/code&gt; executable to a convenient
place, then edit the script to point the variable &lt;code&gt;RC&lt;/code&gt; to the &lt;strong&gt;full, absolute path&lt;/strong&gt; of the
binary.&lt;/p&gt;
&lt;p&gt;After installing Rclone, follow the official documentation to create a configuration for your
remote cloud service. It's important that you can successfuly run a copy or sync between the
two sides. Lets say that you run &lt;code&gt;rclone copy mycloud:somedir/ ~/tmp/someotherdir&lt;/code&gt;, if the 
command finishes and the files show up in &lt;code&gt;~/tmp/someotherdir&lt;/code&gt;, then you're good to go.&lt;/p&gt;
&lt;h4&gt;Getting the script&lt;/h4&gt;
&lt;p&gt;Just clone it from my Gitlab Repo at &lt;a href="https://gitlab.com/Nerdeiro/game-cloud-sync"&gt;https://gitlab.com/Nerdeiro/game-cloud-sync&lt;/a&gt;. You can do it
with the command&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;git clone https://gitlab.com/Nerdeiro/game-cloud-sync.git
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Once it's cloned, you can use it right away, &lt;strong&gt;on a normal Linux distro&lt;/strong&gt;. To put use it on
a Steam Deck, before transfering a copy to the console, open it in your favorite flavor
of Vim and find the line:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;RC=$(which rclone)
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and change everything after the equals sign for the full path to the Rclone binary that you
downloaded before. It should look like:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;RC=/home/deck/bin/rclone
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;or something like that.&lt;/p&gt;
&lt;h4&gt;Using the script on the command line&lt;/h4&gt;
&lt;p&gt;Just run it with the following options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;-s : Source. It can be a local directory or an Rclone remote&lt;/li&gt;
&lt;li&gt;-d : Destination. It can be a local directory or an Rclone remote&lt;/li&gt;
&lt;li&gt;-v : Verbose. Shows the copy progress on the terminal&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One of the parameters should be the local directory where your save games are, eg. &lt;code&gt;$HOME/.config/StardewValley&lt;/code&gt;, the other
should be a remote configuration and path, like &lt;code&gt;mycloud:/StardewValley&lt;/code&gt;. Which one you'll use with &lt;code&gt;-s&lt;/code&gt; or &lt;code&gt;-d&lt;/code&gt; will
depend on which direction you want to sync, to or from the cloud.&lt;/p&gt;
&lt;h4&gt;Using the script with Lutris&lt;/h4&gt;
&lt;p&gt;Open Lutris and click with the right mouse button on your game, selecting "Configure" to show the screen bellow:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.anarch157a.com/images/create_button.png" target="_blank"&gt;&lt;img alt="screenshot of Lutris game settings" height="70%" src="https://www.anarch157a.com/images/Lutris.png" width="70%"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If your screen is not like that, tick the option "Advanced" on the top of the dialog, then scroll all the way to the botton of the "System Options" tab. There you'll the boxes to configure a &lt;em&gt;Pre-launch&lt;/em&gt; and a &lt;em&gt;Post-exit&lt;/em&gt; scripts.&lt;/p&gt;
&lt;p&gt;To &lt;strong&gt;download&lt;/strong&gt; the save files from the cloud to your computer (or Deck) fill the "Pre-launch" line with:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;sync-game.sh -s my_cloud:saved_games/ -d $HOME/game_dir/
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;To &lt;strong&gt;upload&lt;/strong&gt; the save files from the computer to the cloud, fill the "Post-exit" line with:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;sync-game.sh -s $HOME/game_dir/ -d my_cloud:saved_games/
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;If everything works as they should, your game should be saved on your cloud storage, ready to sync to other devices.
Do the same on the Steam Deck if necessary.&lt;/p&gt;
&lt;p&gt;And happy gaming.&lt;/p&gt;</description><category>Cloud</category><category>Games</category><category>Linux</category><category>Steam Deck</category><guid>https://www.anarch157a.com/posts/game-cloud-saves/</guid><pubDate>Fri, 07 Apr 2023 14:47:00 GMT</pubDate></item></channel></rss>