Automated backups of blueprint-storage.dat to Google Cloud

Post all other topics which do not belong to any other category.
Post Reply
jlucktay
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Nov 06, 2018 12:57 am
Contact:

Automated backups of blueprint-storage.dat to Google Cloud

Post by jlucktay »

Upon discovering that the file containing my blueprint library was only being stored locally and that Steam was not storing it alongside savegames in the cloud, I put together a small PowerShell script (as I play on a Windows machine) to automate the backing up of my `blueprint-storage.dat` file to a Google Cloud Storage bucket.

I use cloud platforms in my day job, so this was fairly straight forward for me, in terms of already having an account and some projects on GCP.

If anyone would like a copy of the script, I saved it in a GitHub gist. It could also be adapted to copy to an end-user cloud solution like Google Drive or Dropbox very easily.

Hope that someone finds this useful! :)

User avatar
Ranger_Aurelien
Fast Inserter
Fast Inserter
Posts: 170
Joined: Thu Apr 25, 2019 1:53 pm
Contact:

Re: Automated backups of blueprint-storage.dat to Google Cloud

Post by Ranger_Aurelien »

Hmm, I'll look into this.


Oh, something I found that works is while Factorio is running can make a ZIP backup of

c:\Users\{User}\AppData\Roaming\Factorio\blueprint-storage.dat
into
c:\Users\{User}\AppData\Roaming\Factorio\saves\___blueprint-storage.zip

and Steam sync did back it up. (The only downside is the Load save game dialog will give a warning it can't find save info if you give it focus). (The _ are so it sorts to the bottom in Factorio).
-
Ranger Aurelien
"Knowledge Brings Fear" -- Motto of Mars University, Futurama

Post Reply

Return to “General discussion”