# Launch scripts for Linux, to update to latest experimental and handle save game backup/restore

**URL:** <https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853>\
**Category:** The Toolbox\
**Created:** [August 15, 2021, 6:07pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853 "2021-08-15T18:07:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [August 15, 2021, 6:07pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/1 "2021-08-15T18:07:56Z")

</div>

Removed for being offensive.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [August 15, 2021, 8:13pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/3 "2021-08-15T20:13:24Z")

</div>

Updated the cdda-update script so that it correctly moves the old config to the newly installed version.

---

<div class="post-metadata">

**Author:** ![Duck](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/duck/32/12062_2.png) [@Duck](https://discourse.cataclysmdda.org/u/Duck)\
**Post date:** [August 16, 2021, 3:14am UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/4 "2021-08-16T03:14:21Z")

</div>

Interesting I would not use these myself since I update using git and compiling is easy, I must say though, very tidy, very nice.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [August 17, 2021, 12:17pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/5 "2021-08-17T12:17:24Z")

</div>

I was doing that via script at first, but it was somewhat slow to do a git pull and then a compile. This method is about as fast as one’s internet connection, plus about 2 seconds to extract and move things around. I guess I am an impatient man, lol. Although I 'spect I’ll end up going back to compiling if I ever start making mods.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [August 21, 2021, 12:06am UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/6 "2021-08-21T00:06:22Z")

</div>

Fixed stupid bug in update script relating to pruning old archived versions.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [January 7, 2022, 11:22pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/7 "2022-01-07T23:22:14Z")

</div>

Updated updater script to preserve character templates when updating.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [January 8, 2022, 9:59pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/8 "2022-01-08T21:59:35Z")

</div>

Really stupid error in cdda-launch script fixed. Sorry about that.

Is anyone using this?

---

<div class="post-metadata">

**Author:** ![ThinkSome](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@ThinkSome](https://discourse.cataclysmdda.org/u/ThinkSome)\
**Post date:** [January 9, 2022, 7:51am UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/9 "2022-01-09T07:51:49Z")

</div>

No, sorry. Why are you using old bourne shell syntax if your script is for Bash? It just makes it more error prone. Why are you parsing ls’s output? It’s not meant to be machine readable. Why are you not quoting variables? While I don’t see any obvious way in which this script could wipe your home directory, your way of programming is still very reckless.

[https://mywiki.wooledge.org/BashGuide](https://mywiki.wooledge.org/BashGuide)

There is also no license attached, which in our current legal systems means “all rights reserved” aka nobody can legally use it.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [January 9, 2022, 2:52pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/10 "2022-01-09T14:52:41Z")

</div>

Lol, cool story bro.

I’m gonna keep using this for now, myself, but when you come out of your mom’s basement long enough to your vast intellect and experience to make something better, I’ll happily switch. ;D

This is truly the most amazing thing about this game: The game itself is so _very_ good, yet the community surrounding it is generally so _very_ toxic. It’s a really amusing cycle, that you’d think I’d know better than to participate in any longer:

1. Hey, this game is pretty good. I should get involved a little and maybe contribute something back to the community.
2. Oh Jesus Christ, these people are terrible. Maybe I’ll come back later.
3. Wait a while, then goto 1.

Kek.

---

<div class="post-metadata">

**Author:** ![ThinkSome](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@ThinkSome](https://discourse.cataclysmdda.org/u/ThinkSome)\
**Post date:** [January 9, 2022, 3:22pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/11 "2022-01-09T15:22:42Z")

</div>

I’m sorry, I was too harsh there. The scripts that I wrote at first were also similarly flawed. That website that I linked is the go-to one for improving Bash programming skills.

Bash is one of those languages that makes it very easy to shoot yourself in the foot. Something like rm -rf $dir looks alright at a glance, but what if $dir has a space in it? It gets turned into two parameters to rm.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [January 12, 2022, 10:08pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/12 "2022-01-12T22:08:57Z")

</div>

My bad too. I shouldn’t have been so aggressive. Some of my previous interactions with a vocal but toxic minority of community members may have primed me to assume the worst of others here too. I apologize.

---

<div class="post-metadata">

**Author:** ![sonphantrung](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/sonphantrung/32/11964_2.png) [@sonphantrung](https://discourse.cataclysmdda.org/u/sonphantrung)\
**Post date:** [August 31, 2022, 10:16am UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/13 "2022-08-31T10:16:17Z")

</div>

Are you still around? If so, you should run shellcheck, there are LOTS of mistakes with your syntax, most notably, you’re using backticks, doesn’t use double quotes to surround varibles

---

<div class="post-metadata">

**Author:** ![Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lee/32/11741_2.png) [@Lee](https://discourse.cataclysmdda.org/u/Lee)\
**Post date:** [August 31, 2022, 10:50pm UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/14 "2022-08-31T22:50:30Z")

</div>

No, it was made abundantly clear that the CDDA community is not an inclusive space and that I am unwelcome. I’ll go ahead and remove it so it will no longer offend you fine folks. 😃 You can use your expertise to make something better instead.

---

<div class="post-metadata">

**Author:** ![sonphantrung](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/sonphantrung/32/11964_2.png) [@sonphantrung](https://discourse.cataclysmdda.org/u/sonphantrung)\
**Post date:** [September 1, 2022, 1:59am UTC](https://discourse.cataclysmdda.org/t/launch-scripts-for-linux-to-update-to-latest-experimental-and-handle-save-game-backup-restore/26853/15 "2022-09-01T01:59:31Z")

</div>

Oh, I was just informing you about some syntax mistakes when I use shellcheck to check your scripts, and you got offended? Alright then, but what was the full story? You got banned from Vorm’s server?
