Posted March 03, 2012
Update: Please see the first answer for an alternative, which appears to be a better and also has the same name. epowers' program was first and has more features.
---
Hello GOGers!
Maybe you know this problem: You joined GOG a long time ago, bought many games during this time, but never had the opportunity to create a local backup of your contents.
Now you look at your games list and see hundreds of downloads you would have to start manually in order to backup all your content. With the time it would take to start and wait for the end of downloads, you just never do it.
This is exactly the problem I faced when I got a new external hard drive. I now had enough disk space for a backup, but I had amassed more than 100 games in my account (damn sales! ;-) ) and downloading 145 GB starting each download manually would be impossible.
Fortunately, my job involves writing code to solve problems for scientists and so I hacked together a quick proof-of-concept to see if I could automate the whole process. I checked with JuriJ from GOG support if automated downloading is OK and he and his colleagues kindly gave me permission to write an automatic downloader and also give it to you, dear GOGers!
So, I present to you , a small Python program which creates a backup of all your games and extras. On Windows you can just [url=https://github.com/johkra/GOG-backup/downloads]download the provided executable file, run it and after you logged in, it will backup all your GOG content to the directory where you put the exe.
If you use the GOG-downloader, you can just put it in your download directory and it will not re-download any games you already have.
The code (<300 lines of Python) is libre and open source and you are free to take it and create a nice graphical interface or extend it to allow the selection of only some games to download. Of course, you can also ask me to implement some improvements and I will do so if my time permits.
For those who wonder how it works: The programs performs a login to get the authentication cookie, then downloads the "My account" page, extracts the download links from the HTML source and then it downloads all links, skipping any already existing files.
I hope this tool is useful to other GOGers who want to create a backup of their GOG content. Enjoy!
- Johannes
---
Hello GOGers!
Maybe you know this problem: You joined GOG a long time ago, bought many games during this time, but never had the opportunity to create a local backup of your contents.
Now you look at your games list and see hundreds of downloads you would have to start manually in order to backup all your content. With the time it would take to start and wait for the end of downloads, you just never do it.
This is exactly the problem I faced when I got a new external hard drive. I now had enough disk space for a backup, but I had amassed more than 100 games in my account (damn sales! ;-) ) and downloading 145 GB starting each download manually would be impossible.
Fortunately, my job involves writing code to solve problems for scientists and so I hacked together a quick proof-of-concept to see if I could automate the whole process. I checked with JuriJ from GOG support if automated downloading is OK and he and his colleagues kindly gave me permission to write an automatic downloader and also give it to you, dear GOGers!
So, I present to you , a small Python program which creates a backup of all your games and extras. On Windows you can just [url=https://github.com/johkra/GOG-backup/downloads]download the provided executable file, run it and after you logged in, it will backup all your GOG content to the directory where you put the exe.
If you use the GOG-downloader, you can just put it in your download directory and it will not re-download any games you already have.
The code (<300 lines of Python) is libre and open source and you are free to take it and create a nice graphical interface or extend it to allow the selection of only some games to download. Of course, you can also ask me to implement some improvements and I will do so if my time permits.
For those who wonder how it works: The programs performs a login to get the authentication cookie, then downloads the "My account" page, extracts the download links from the HTML source and then it downloads all links, skipping any already existing files.
I hope this tool is useful to other GOGers who want to create a backup of their GOG content. Enjoy!
- Johannes
Post edited March 03, 2012 by johkra