It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Made a new topic as when I searched both on site and in google couldnt find any direct reference to this question answered. There is mention that one can change the default directory in the gogrepoc script for downloading their entire libraries. I do not however see anywhere that explains how to do this, or where to find the directory in the python code. I have taught myself overnight how to get it running and opening the scripts. However my harddrive is tiny and I own over 2000 games on here so I really need to target a different location so I can get my library downloaded.

Any help, or advice? Please. Thank you.

I am running from cmd. I am typing python gogrepoc.py download -os windows -land en. What should I be typing if I want to not download again games on an external drive in D:\ in a folder called GOG. Its nearly 4TBs so its a big deal to keep redoing this and at current speeds needs to run for more than 7 days straight to get it all. I have 5TBs downloaded already that I would love to compare it to so it could skip those.
Post edited November 22, 2021 by eatatralphs
There's a giant thread for gogrepo questions in the forums.

Here's an example from my scripts:
./gogrepo.py download /share/!installers/Games/GOG.com/ -skipextras

I keep the manifest in the same place as the python script, but the files in a different location.

Thread for gogrepo: https://www.gog.com/forum/general/gogrepopy_python_script_for_regularly_backing_up_your_purchased_gog_collection_for_full_offline_e
When i update my backups i run 6 commands 1 after the other, copied more or less from someone's scripts in the dedicated thread each with his own .bat file:
update the manifest,
download updates to an external HD
clean
verify
backup to a secondary backup external HD
clean secondary backup

@echo off

python gogrepoc.py update -os windows -lang en -full

exit

@echo off

python gogrepoc.py download e:\gogbackups

exit

@echo off

python gogrepoc.py clean e:\gogbackups

exit

@echo off

python gogrepoc.py verify e:\gogbackups

exit

@echo off

python gogrepoc.py backup e:\gogbackups g:\gogbackups

exit

@echo off

python gogrepoc.py clean g:\gogbackups

exit
avatar
eatatralphs: However my harddrive is tiny and I own over 2000 games on here so I really need to target a different location so I can get my library downloaded.
As others have already said in their examples, you just put the target location at the end of the command, e.g.

python gogrepoc.py download E:\GOGGames\

However, from your description it appears you want to download your library to several (two or more) different locations, ie. divide your downloaded installers to several paths (drives)?

Remember that when you start downloading to an empty drive, gogrepoc will start downloading all of them all over again, as it doesn't see any existing installers in the target path. It will skip downloading only those files that it can already find in the target location. If the target location has no files, then it will just try to download everything all over again.

If you want to divide your downloads to two or more different target locations, I think the only meaningful way to achieve that is to:

1. First get a full manifest file ("python gogrepoc.py update -lang en -os windows")

2. Make copies (two or more) of the manifest file, and manually edit them, dividing it to two or more partial manifest files.

So if you e.g. want to download all the games starting with # to N to one drive, and games from O to Z to another drive, you must divide the manifest file to two different manifest files, removing all those titles from them that you don't want to download to that drive.

Be extra careful when editing the partial manifest files, try to figure out which are all the lines that must be present for each game (ie. where it starts for each game and where it ends), and each manifest file must begin and finish with the correct [ and ] symbols. You need to figure out the correct syntax by examining the manifest file, how it is constructed overall.

3. Then you just run "gogrepoc.py download" several times, using those different partial manifest files, and pointing them to whatever drive and path you want to download those particular files. You can run "clean" and "verify" with those partial manifest files too, just be sure to use the correct partial manifest file for the correct target path. Maybe use the "-dryrun" option first to see that it doesn't do something unexpected as you are using the wrong manifest file or target location. "clean" will e.g. move all the files that it doesn't see in the manifest file to the "!orphaned" directory, so if you are using the wrong manifest file with "clean", it will move everything under !orphaned.

4. If you want to run "update" again to refresh the manifest file, you have to use the original, complete, manifest file, and then divide it again to those partial manifest files in order to run download/clean/verify.
avatar
eatatralphs: I am running from cmd. I am typing python gogrepoc.py download -os windows -land en.
By the way, if I recall correctly, you define the -os and -lang when running "gogrepoc.py update" (ie. when you create or refresh the manifest file with all the file details), not when you run "gogrepoc.py download". However if it is only English Windows versions you are interested in, I think those values are used by default by the script, so you don't necessarily have to use the -os and -lang options at all.
Post edited November 22, 2021 by timppu