Steam – How to install backup of steam games on Ubuntu

linuxsteamUbuntu

I've got some games installed on native steam for linux. Unfortunately, my system got nuked and I had to reinstall. While I was reinstalling Ubuntu 15.04, I managed to save some of my game folders to an external disk. I saved them off of ~/.local/share/Steam/SteamApps/common/<game name>

Now that I have my OS and steam up and running, I'd like to reinstall them without having to download them, since my internet is pretty slow. I started downloading Borderlands 2, so that I would know where to put the files. It started downloading files to ~/.steam/steam/steamapps/downloading

So I made a new directory in ~/.steam/steam/steamapps/common and copied all of my game folders over. Then I quit steam and restarted. But now it is still trying to download the files, and it can't launch them. What did I do wrong?

Best Answer

You need the manifest of the app. The data is there but it is not "listed" in the library due to that. Manifests basically tell Steam what the app is called, what its id is, where is the source located, and default presets. Manifests are located in SteamApps and are called appmanifest_<number>.acf (<number> indicates the app number without < and >).

You can create a simple manifest by launching a text editor and formatting it like this:

"AppState"
{
  "AppID"  "49520"
  "Universe" "1"
  "StateFlags" "1026"
  "installdir"      "Borderlands 2"
}

49520 is the application ID for Borderlands 2. installdir points to the name of the directory in SteamApps/common where the data is located. Save the manifest with the number in the name being the same as App ID. In this case you would save it as: appmanifest_49520.acf