How to install backup of steam games on Ubuntu

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
Pictures about "How to install backup of steam games on Ubuntu"



How do I install a Steam game from a backup?
How do I install Steam games on Ubuntu?
How to Install Steam in Ubuntu 20.04How do I backup Steam games on Linux?
To back up your Steam games, simply copy the folders in the common directory to a USB external hard drive or flash drive. To restore the backup, simply place the files back in ~/. steam/steamapps/common and click \u201cINSTALL.\u201d Steam will automatically discover the backup.Where are my Steam game backups?
(Ubuntu/Linux) How to install Steam Games to external Hard Drive. (2021)
More answers regarding how to install backup of steam games on Ubuntu
Answer 2
If it's like the way they changed it in Windows, just move the games back and start the installation. Steam will notice the existing files and skip downloading those.
Answer 3
IIRC what worked for me in this situation was to:
- Cancel all downloads in the Steam client.
- Exit Steam.
- Copy the game files to the correct path (.../steamapps/common/)
- Open Steam.
- Try to install a copied game in Steam client. Steam will then discover existing files for some minutes before starting to download anything that might be missing (e.g. intervening updates).
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Francesco Ungaro, RODNAE Productions, RODNAE Productions, RODNAE Productions