Overclock.net banner
241 - 258 of 258 Posts

· Registered
Joined
·
7 Posts
Steam Backup Tool doesn't work with my Steam install on Windows 7 64 bit Pro. The tool itself runs, the GUI doesn't display any installed games and when I click the "Backup all" button it runs through the process and displays the result of having backed up 0 jobs.

I'm not entirely sure why. The one thing I did that was unconventional was that I manually copied over my "Steamapps\Common" folder from my old computer because the disk my backup files were on was corrupted.

I'm now going through the time-consuming process of using Steam Backup to backup each game, deleting it, and then using Steam Restore to restore it. This allows me to test that the new backup hard drive is functional so it's not a complete waste
biggrin.gif
.

But having restored a few games this way Backup Tool still doesn't detect that they're installed on my system.

Some things I've verified:
Path to Steam: C:\Steam
.Net 4.0 installed
Standalone 7-zip installed (just in case I needed to associate the .7z files)
Every game has a manifest-#.acf file
I have the latest pre-compiled Backup Tool binary.

I posted this over on Github as a bug, also posting here so that some discussion for troubleshooting can happen.
 

· Registered
Joined
·
85 Posts
Quote:
Originally Posted by Eachna View Post

Steam Backup Tool doesn't work with my Steam install on Windows 7 64 bit Pro. The tool itself runs, the GUI doesn't display any installed games and when I click the "Backup all" button it runs through the process and displays the result of having backed up 0 jobs.

I'm not entirely sure why. The one thing I did that was unconventional was that I manually copied over my "Steamapps\Common" folder from my old computer because the disk my backup files were on was corrupted.

But having restored a few games this way Backup Tool still doesn't detect that they're installed on my system.

Some things I've verified:
Path to Steam: C:\Steam
.Net 4.0 installed
Standalone 7-zip installed (just in case I needed to associate the .7z files)
Every game has a manifest-#.acf file
I have the latest pre-compiled Backup Tool binary.

I posted this over on Github as a bug, also posting here so that some discussion for troubleshooting can happen.
Heya!
biggrin.gif
So first off, did you re-install Steam? Or just copy over the entire folder? If the latter, I would suggest you delete all files/folders in your Steam folder except for the userdata, SteamApps and skins folders and then grab the Steam installer and run it. Once installed, verify that the games in your SteamApps folder detect in your Steam library correctly.

If that is not the case, and you're sure that Steam was installed correctly (as I believe SBT detects paths via the Registry) can you check that settings.cfg exists at %AppData%\SteamBackupTool and that the line with "steamDir": correctly points to your main Steam installation folder?

Other than that, I'm not sure what else may be the issue... But hopefully the .cfg file can shed some light on what is going on first and foremost before additional troubleshooting...
Quote:
Originally Posted by Eachna View Post

I'm now going through the time-consuming process of using Steam Backup to backup each game, deleting it, and then using Steam Restore to restore it. This allows me to test that the new backup hard drive is functional so it's not a complete waste
biggrin.gif
.
Regarding this, why are you using the dreadfully slow backup function of Steam? Last I remember it used a proprietary container that you couldn't easily access the data from, thus rendering any data retrieval impossible.

Short from using SBT that does this for you automatically, you can just copy the games folder in the SteamApps\common directory, along with the matching .acf file which is in the root of the SteamApps folder and then add it to a compressed archive. To find the .acf for a specific game, I usually just perform a Google search with; "Name of Game SteamDB" so for example "Path of Exile SteamDB" gives me the first result as "Path of Exile · AppID: 238960 · Steam Database - SteamDB" and thus I see the .acf (AppID) is 238960 at a glance, finding it as "appmanifest_238960.acf".
 

· Registered
Joined
·
7 Posts
Sorry, I did forget to include in my troubleshooting steps that I installed Steam Client using the downloaded installer. Good thought though.

I only copied the Steamapps\Common directory. That's why I'm doing the backup - restore dance now. So I can get all my programs installed correctly and registered in the registry and get shortcuts created in my Start Menu. By just copying over my old directory, I don't have shortcuts and Windows doesn't know the programs are on my computer.

Here are the contents of the config file:

{/*Do not edit this file, you might break something!*/
"backupDir": "D:\\Backup\\SteamBackupTool",
"steamDir": "C:\\Steam",
"compresion": 5,
"threadsBup": 4,
"threadsRest": 4,
"checkSteamRun": true,
"debugMode": false,
"useLzma2": false,
"lzma2UnlockThreads": false,
"lzma2Threads": 8
}

I see there's a "debug mode". Should I enable it for debugging? Since it clearly says not to edit the file I can look for the switch in the command line version.
 

· Registered
Joined
·
7 Posts
Yes, the SteamApps folder has .acf files that match up to each installed game.

I tried running Backup Tool again and it found one program this time. I suppose that may be progress? It found Cloud Chamber. It still doesn't detect any of the other games I have installed. Cloud Chamber was copied from my old computer, backed up using Steam Backup, and then restored using Steam Restore.

I have no idea if the other acfs are damaged in some way, but I have downloaded a couple of very small games from the Steam Servers and installed them, so at the very least I would expect all the small games to be found and they're not.

Here is the text from Cloud Chamber's .acf

"AppState"
{
"appID" "290710"
"Universe" "1"
"name" "Cloud Chamber"
"StateFlags" "4"
"installdir" "CloudChamber"
"LastUpdated" "1474414859"
"UpdateResult" "0"
"SizeOnDisk" "5847807018"
"buildid" "384555"
"LastOwner" "76561198021345592"
"BytesToDownload" "5614983952"
"BytesDownloaded" "5614983952"
"AutoUpdateBehavior" "0"
"AllowOtherDownloadsWhileRunning" "0"
"UserConfig"
{
"language" "english"
}
"MountedDepots"
{
"290711" "3366730585128850962"
}
}

Here is the .acf for Pony Island (a game it can't see):

"AppState"
{
"appID" "405640"
"Universe" "1"
"name" "Pony Island"
"StateFlags" "4"
"installdir" "Pony Island"
"LastUpdated" "1474414860"
"UpdateResult" "0"
"SizeOnDisk" "449992650"
"buildid" "1331153"
"LastOwner" "76561198021345592"
"BytesToDownload" "198779856"
"BytesDownloaded" "198779856"
"AutoUpdateBehavior" "0"
"AllowOtherDownloadsWhileRunning" "0"
"UserConfig"
{
"language" "english"
}
"MountedDepots"
{
"428010" "3873093160401556722"
"405641" "5051749903585164772"
}
"DlcDownloads"
{
"428010"
{
"BytesDownloaded" "86154896"
"BytesToDownload" "86154896"
}
}
}
 

· Registered
Joined
·
85 Posts
Quote:
Originally Posted by Eachna View Post

Yes, the SteamApps folder has .acf files that match up to each installed game.

I tried running Backup Tool again and it found one program this time. I suppose that may be progress? It found Cloud Chamber. It still doesn't detect any of the other games I have installed. Cloud Chamber was copied from my old computer, backed up using Steam Backup, and then restored using Steam Restore.

I have no idea if the other acfs are damaged in some way, but I have downloaded a couple of very small games from the Steam Servers and installed them, so at the very least I would expect all the small games to be found and they're not.
That's so strange, that it detects one game, but not the others... Is Pony Island installed on the same partition/drive as Cloud Chamber? And you installed Pony Island from scratch via Steam, yeah?

I'm assuming you have, but if you're anything like me then you hardly ever restart your PC and rather put it to sleep, just in case; have you at all restarted your PC since you started using SBT?

How about security features? Are you running the application as an Administrator? Do you have any policies in place? Do you have an over-zealous anti-virus that may be clamping down on SBT's rights?

We have the same OS version, so no idea what is going on there... Have you tried SBT in safe-mode? Perhaps you could try running some Windows updates?

The only other thing I can suggest is running the steamBackupCLI.exe and checking out the parameters you can pass to see if perhaps the GUI version is causing some unknown issue (unlikely).

Sorry that you have to go through all this, as SBT is a really awesome application to have, and I hope we manage to figure out something eventually!
thumb.gif
 

· Registered
Joined
·
7 Posts
Thank you for taking the time to troubleshoot this. It looks awesome, which was why I am so interested in getting it working. So if you're willing to keep troubleshooting, I'm willing to keep trying to get it working.

* I downloaded Pony Island from Steam and installed it. It's very small so it wouldn't eat my data allowance.
* All games are installed in the same place: C:\Steam\steamapps\common\
* Each game has a file named "appmanifest-game#.acf"
* I had already restarted my computer earlier but I did it again.
* I have been manually backing up each game and restoring it from backup so most of the games I have installed are not simply "copied" from my other computer like when I made my initial post.
* My login has admin privs. Until now I haven't been right-clicking and choosing "Run as Administrator" but I tried that and it doesn't change anything.
* All my windows updates are run. I didn't start messing with Steam until that was finished.
* All my policies are default. TBH I'm more of a Linux person than Windows so I don't touch much in Windows. I did turn off file indexing for my SSD.
* No antivirus or security other than what Windows comes with.

The Backup Tool sees two programs. Cloud Chamber and Call of Cthuthlu. So now I know that Restoring from Steam Backup is working, but I don't know why it doesn't work for every program.

When running from the command line, it crashes. I ran the CLI version from a prompt box with Admin privs

here's the output:

c:\Games\SteamBackup>steamBackupCLI.exe --lmza2 --compression=5 --out-dir="D:\Backup\SteamBackupTool"
Steam Backup Tool - Command Line v1.8.6.0
https://bitbucket.org/Du-z/steam-backup-tool

Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Programmers:
Brian 'Du-z' Duhs (overclock.net/u/69975/du-z)
Juergen 'UniqProject' Tem (overclock.net/u/395443/uniqproject)
James 'FiX' Warner (overclock.net/u/98516/fix)

Help and Sugestions:
InsaneMatt (overclock.net/u/106953/insanematt)
d3viliz3d (overclock.net/u/167561/d3viliz3d)
davcomNZ (overclock.net/u/261011/davcomnz)
ToonLink15 (overclock.net/u/366419/toonlink15)

Scanning for installed games...

Unhandled Exception: System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needF
ullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, Access
ControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boo
lean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pat
hList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.FileInfoResultHandler.CreateObject(SearchResult result)
at System.IO.FileSystemEnumerableIterator`1.MoveNext()
at steamBackup.AppServices.BackupJob..ctor(String steamDir, String backupDir, String library, Dic
tionary`2 acfFiles)
at steamBackup.AppServices.BackupTask.ScanCommonFolders(BackgroundWorker worker)
at steamBackupCLI.Program.Setup()
at steamBackupCLI.Program.Main(String[] args)


Here's the output when I manually set the Steam path:


c:\Games\SteamBackup>steamBackupCLI.exe --lmza2 --steam-dir="C:\Steam" --compression=5 --out-dir="D:
\Backup\SteamBackupTool"
Steam Backup Tool - Command Line v1.8.6.0
https://bitbucket.org/Du-z/steam-backup-tool

Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Programmers:
Brian 'Du-z' Duhs (overclock.net/u/69975/du-z)
Juergen 'UniqProject' Tem (overclock.net/u/395443/uniqproject)
James 'FiX' Warner (overclock.net/u/98516/fix)

Help and Sugestions:
InsaneMatt (overclock.net/u/106953/insanematt)
d3viliz3d (overclock.net/u/167561/d3viliz3d)
davcomNZ (overclock.net/u/261011/davcomnz)
ToonLink15 (overclock.net/u/366419/toonlink15)

Scanning for installed games...

Unhandled Exception: System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needF
ullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, Access
ControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boo
lean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pat
hList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.FileInfoResultHandler.CreateObject(SearchResult result)
at System.IO.FileSystemEnumerableIterator`1.MoveNext()
at steamBackup.AppServices.BackupJob..ctor(String steamDir, String backupDir, String library, Dic
tionary`2 acfFiles)
at steamBackup.AppServices.BackupTask.ScanCommonFolders(BackgroundWorker worker)
at steamBackupCLI.Program.Setup()
at steamBackupCLI.Program.Main(String[] args)


Even though the CLI version is crashing the GUI version is still running and backing up without crashing.
 

· Registered
Joined
·
7 Posts
This may also be helpful, not sure what it shows but it certainly shows *something*
biggrin.gif
.

I tried manually 7z-ing Pony Island and copying the zip and .acf files to the right directories in the Backup Tool backup directory.They now show up in the Backup Tool restore list. I deleted the local Pony Island content from Steam and then ran a restore and it worked correctly. Pony Island is restored and running after using Backup Tool.

However, even after restoring using the Backup Tool, the tool cannot find Pony Island for backing up.
 

· Registered
Joined
·
85 Posts
Quote:
Originally Posted by Eachna View Post

This may also be helpful, not sure what it shows but it certainly shows *something*
biggrin.gif
.

I tried manually 7z-ing Pony Island and copying the zip and .acf files to the right directories in the Backup Tool backup directory.They now show up in the Backup Tool restore list. I deleted the local Pony Island content from Steam and then ran a restore and it worked correctly. Pony Island is restored and running after using Backup Tool.

However, even after restoring using the Backup Tool, the tool cannot find Pony Island for backing up.
Sorry for getting back to you so late! The error you encountered is usually due to an invalid character somewhere... Where, that is hard to tell, if there is an issue in the code that your environment is now bringing to light, or if your paths contain invalid/special characters.

@Du-z should be able to make something out of your debug log, hopefully! Also, I am no expert in C/C#, but System.Security.Permissions.FileIOPermission kind of sounds like it isn't able to perform the functions it needs to... Though, once again hopefully this is something Du-z can comment on.

Aside from all this, there is definitely something wrong somewhere, and sadly I am out of suggestions.
frown.gif
Let's hope we find a solution!
thumb.gif
 

· Registered
Joined
·
7 Posts
This build found all my games. I don't know if it was the slightly older code or the fact that I moved my Steam install. I did move my Steam install (but I left my game library in the same place).

It appears to not be the latest build as clicking on the button to check for an update tells me I can update to 1.8.6 (which was what I was using previously)

here is the log. I cancelled it while it was still backing up the first game but it was definitely compressing when I stopped it.

I'm not sure what's going on with the year showing up as 1601 for the last backup date.

Anyway, I wanted to post this and now I'll return to backing up and see if I can also restore. It may be a few hours.

Starting Log 1.8.7.0 09/25/2016 14:47:18
Starting GUI
Opening Backup Wizard
Steam Is Running
Opening Backup Wizard
'C:\Steam' is not a valid Steam installation directory
Opening Backup Wizard
Loading Backup Wizard
Completed loading Backup Wizard
Scanning Common Folders
Found a library C:\Steam\steamapps common
library C:\Steam\steamapps has 33 folders.
C:\Steam\steamapps\common\Deus Ex - Human Revolution: Found a steam game {0}
C:\Steam\steamapps\common\The Walking Dead: Found a steam game {0}
C:\Steam\steamapps\common\SimCity 4 Deluxe: Found a steam game {0}
C:\Steam\steamapps\common\Call of Cthulhu: Found a steam game {0}
C:\Steam\steamapps\common\tbs: Found a steam game {0}
C:\Steam\steamapps\common\Pony Island: Found a steam game {0}
Processing steam game Deus Ex - Human Revolution
Processing steam game Pony Island
Processing steam game Simcity 4 Deluxe
Processing steam game The Walking Dead
C:\Steam\steamapps\common\Game of Thrones: Found a steam game {0}
Processing steam game Game Of Thrones
Processing steam game Call Of Cthulhu
Processing steam game Tbs
Processing steam game Game Of Thrones completed - 9 files - oldest file 11/26/2015 11:13:20 - backup date 01/01/1601 00:00:00 - steam file size 12412218 - backup file size 0
Processing steam game Deus Ex - Human Revolution completed - 161 files - oldest file 09/21/2016 21:19:05 - backup date 01/01/1601 00:00:00 - steam file size 8933663202 - backup file size 0
C:\Steam\steamapps\common\HER STORY: Found a steam game {0}
Processing steam game HER STORY
C:\Steam\steamapps\common\Fallout 3 goty: Found a steam game {0}
Processing steam game Fallout 3 Goty
Processing steam game The Walking Dead completed - 146 files - oldest file 09/22/2016 02:36:17 - backup date 01/01/1601 00:00:00 - steam file size 4593084487 - backup file size 0
C:\Steam\steamapps\common\The Walking Dead Michonne: Found a steam game {0}
Processing steam game The Walking Dead Michonne
Processing steam game Simcity 4 Deluxe completed - 1889 files - oldest file 09/06/2014 05:10:12 - backup date 01/01/1601 00:00:00 - steam file size 1241463323 - backup file size 0
C:\Steam\steamapps\common\Skyrim: Found a steam game {0}
Processing steam game Skyrim
Processing steam game Skyrim completed - 19 files - oldest file 06/07/2015 21:50:09 - backup date 01/01/1601 00:00:00 - steam file size 964019999 - backup file size 0
C:\Steam\steamapps\common\Slime Rancher: Found a steam game {0}
Processing steam game Slime Rancher
Processing steam game HER STORY completed - 336 files - oldest file 09/20/2016 21:31:12 - backup date 01/01/1601 00:00:00 - steam file size 1621755325 - backup file size 0
C:\Steam\steamapps\common\Life Is Strange: Found a steam game {0}
Processing steam game Life Is Strange
Processing steam game The Walking Dead Michonne completed - 252 files - oldest file 09/22/2016 05:41:59 - backup date 01/01/1601 00:00:00 - steam file size 5566221397 - backup file size 0
C:\Steam\steamapps\common\The Walking Dead Season Two: Found a steam game {0}
Processing steam game The Walking Dead Season Two
Processing steam game Fallout 3 Goty completed - 262 files - oldest file 09/20/2016 21:21:02 - backup date 01/01/1601 00:00:00 - steam file size 9474203596 - backup file size 0
C:\Steam\steamapps\common\Fallout New Vegas: Found a steam game {0}
Processing steam game Fallout New Vegas
Processing steam game Slime Rancher completed - 60 files - oldest file 09/20/2016 18:21:40 - backup date 01/01/1601 00:00:00 - steam file size 400963086 - backup file size 0
C:\Steam\steamapps\common\Stardew Valley: Found a steam game {0}
Processing steam game Stardew Valley
Processing steam game The Walking Dead Season Two completed - 253 files - oldest file 09/22/2016 02:37:58 - backup date 01/01/1601 00:00:00 - steam file size 4237088897 - backup file size 0
C:\Steam\steamapps\common\TheLongDark: Found a steam game {0}
Processing steam game Thelongdark
Processing steam game Stardew Valley completed - 940 files - oldest file 06/04/2016 22:05:18 - backup date 01/01/1601 00:00:00 - steam file size 443202933 - backup file size 0
C:\Steam\steamapps\common\tbs2: Found a steam game {0}
Processing steam game Tbs2
Processing steam game Fallout New Vegas completed - 445 files - oldest file 09/20/2016 22:20:42 - backup date 01/01/1601 00:00:00 - steam file size 8932629834 - backup file size 0
C:\Steam\steamapps\common\Farming Simulator 15: Found a steam game {0}
Processing steam game Farming Simulator 15
Processing steam game Pony Island completed - 90 files - oldest file 09/21/2016 17:58:00 - backup date 09/21/2016 17:39:35 - steam file size 449995863 - backup file size 193964100
C:\Steam\steamapps\common\Recettear: Found a steam game {0}
Processing steam game Recettear
Processing steam game Thelongdark completed - 2027 files - oldest file 09/23/2016 20:25:39 - backup date 01/01/1601 00:00:00 - steam file size 2678009686 - backup file size 0
C:\Steam\steamapps\common\Torment Tides of Numenera: Found a steam game {0}
Processing steam game Torment Tides Of Numenera
Processing steam game Life Is Strange completed - 3147 files - oldest file 09/22/2016 07:37:21 - backup date 01/01/1601 00:00:00 - steam file size 12103495106 - backup file size 0
C:\Steam\steamapps\common\Lord of the Rings Online: Found a steam game {0}
Processing steam game Lord Of The Rings Online
Processing steam game Lord Of The Rings Online completed - 132 files - oldest file 03/13/2016 05:34:07 - backup date 01/01/1601 00:00:00 - steam file size 82132640 - backup file size 0
C:\Steam\steamapps\common\Salt: Found a steam game {0}
Processing steam game Salt
Processing steam game Salt completed - 1 files - oldest file 10/16/2015 05:14:37 - backup date 01/01/1601 00:00:00 - steam file size 16417 - backup file size 0
C:\Steam\steamapps\common\Zenimax Online: Found a steam game {0}
Processing steam game Zenimax Online
Processing steam game Farming Simulator 15 completed - 3631 files - oldest file 07/07/2016 14:00:57 - backup date 01/01/1601 00:00:00 - steam file size 4386999369 - backup file size 0
C:\Steam\steamapps\common\CloudChamber: Found a steam game {0}
Processing steam game Cloudchamber
Processing steam game Recettear completed - 1095 files - oldest file 06/13/2016 18:44:48 - backup date 01/01/1601 00:00:00 - steam file size 645490804 - backup file size 0
C:\Steam\steamapps\common\RIFT: Found a steam game {0}
Processing steam game RIFT
Processing steam game Tbs2 completed - 8215 files - oldest file 09/15/2016 10:59:51 - backup date 01/01/1601 00:00:00 - steam file size 4393951170 - backup file size 0
C:\Steam\steamapps\common\The Bunker: Found a steam game {0}
Processing steam game The Bunker
Processing steam game RIFT completed - 111 files - oldest file 09/25/2016 03:42:12 - backup date 01/01/1601 00:00:00 - steam file size 547190966 - backup file size 0
Processing steam game The Bunker completed - 538 files - oldest file 09/23/2016 20:25:45 - backup date 01/01/1601 00:00:00 - steam file size 5329235607 - backup file size 0
C:\Steam\steamapps\common\The Sims 3: Found a steam game {0}
Processing steam game The Sims 3
Processing steam game Tbs completed - 15568 files - oldest file 09/03/2016 06:39:01 - backup date 01/01/1601 00:00:00 - steam file size 5284869170 - backup file size 0
Processing steam game Zenimax Online completed - 890 files - oldest file 09/24/2016 06:19:25 - backup date 09/20/2016 20:27:25 - steam file size 71463534189 - backup file size 60136576919
Processing steam game Call Of Cthulhu completed - 10369 files - oldest file 09/21/2016 08:39:17 - backup date 09/21/2016 16:01:41 - steam file size 1868988461 - backup file size 820238787
Processing steam game Cloudchamber completed - 360 files - oldest file 09/21/2016 04:34:06 - backup date 09/21/2016 16:15:34 - steam file size 5856239423 - backup file size 5553984897
C:\Steam\steamapps\common\DC Universe Online: Found a steam game {0}
Processing steam game DC Universe Online
Processing steam game Torment Tides Of Numenera completed - 2896 files - oldest file 09/20/2016 18:41:56 - backup date 01/01/1601 00:00:00 - steam file size 26146838117 - backup file size 0
Processing steam game The Sims 3 completed - 2745 files - oldest file 09/22/2016 04:39:37 - backup date 01/01/1601 00:00:00 - steam file size 34380703406 - backup file size 0

Starting Log 1.8.7.0 09/25/2016 14:53:31
Starting GUI
 

· Registered
Joined
·
7 Posts
Quote:
Originally Posted by Du-z View Post

Oooh good news then.

I did change a few other things as well as adding the log so that may of fixed the issue.

Let me know how the full backup goes!
The first backup finished. Now I'm updating my MMOs clients and I'll back those up after they download all the extra content.

Thanks for the troubleshooting and finding a solution.
 

· Registered
Joined
·
174 Posts
Just checking, this tool does not backup savegames or screenshots?
 

· Registered
Joined
·
1 Posts
Hi, this is a nice tool. I like it but at moment isn't useful for me.
Is it possible to add options to split the 7z backup files (in bytes).
Or option to use additional commands/options for 7z.

7z support to update archive files is it possible to use this option?

I've made a quick batch to backup Steam Games, it create volume files with 4570000000 byte for DVD sets of large games.
Check the maximum size of your DVD-R / RW / RAM ... and change -v4570000000 to the size you need.


Code:

Code:
@ECHO OFF
CLS
:: VERSION 1.0.034
::
:: Location of Steam Apps
SET STEAM_FLD=%ProgramFiles(x86)%\Steam\steamapps

:: Location of 7z.exe
SET ZIP_APP=%ProgramFiles%\7-Zip\7z.exe
IF NOT EXIST "%ZIP_APP%" GOTO ZIP_ERROR

:: Procentual number of CPU threads
SET THREADS=75

:: 7zip default Compression options
:: DVD          -v4570000000
:: CDR-74       -v681900000
:: CDR-80       -v737200000
SET /A CPU=%NUMBER_OF_PROCESSORS% * %THREADS% / 100
SET ZIP_OPT=-v4570000000 -r -spf -m9=lzma2 -t7z  -mmt%CPU%

:: Backup Folder
SET BAK_DEST=D:\STEAM_Backup
IF NOT EXIST "%BAK_DEST%" MD "%BAK_DEST%"

ECHO/
ECHO Select a game by number and press return to Backup
ECHO/
CALL :SelectGame SelectedGame
CALL :AppManifest AppManifest
CALL :BACKUP
GOTO :EOF

:SelectGame returnVar
SETLOCAL EnableDelayedExpansion
:nextFolder
CD "%STEAM_FLD%\common"
   ECHO/
   SET I=0
   SET FOLDER[0]=..
   ECHO     0 - ..
   FOR /D %%D IN (*) DO (
      SET /A I+=1
      SET FOLDER[!I!]=%%D
      ECHO     !I! - %%D
   )
   :getOption
   SET OPTION=0+
   SET OPENFOLDER=1
   ECHO/
   SET /P "OPTION=Enter the desired game: "
   IF "%OPTION:~-1%" EQU "+" (
      SET OPTION=%OPTION:~0,-1%
   ) ELSE (
      SET OPENFOLDER=
   )
   IF %OPTION% GTR %I% GOTO GETOPTION
   SET GAMENAME=!FOLDER[%OPTION%]!
IF DEFINED OPENFOLDER GOTO NEXTFOLDER
ENDLOCAL & SET %1=%GAMENAME%
GOTO :EOF

:AppManifest 
SETLOCAL EnableDelayedExpansion
FOR /f "tokens=*" %%a IN ('FINDSTR /i /m "%SelectedGame%" "%STEAM_FLD%\*.acf"') DO (
        SET ACF_FILE=%%a)
IF NOT DEFINED ACF_FILE GOTO :AppManErr
ENDLOCAL & SET %1=%ACF_FILE%
GOTO :EOF

:BACKUP
IF EXIST "%BAK_DEST%\%SelectedGame%\%SelectedGame%.7z.001" (CLS
        ECHO Backup of "%SelectedGame%" already exist.
        DEL /P "%BAK_DEST%\%SelectedGame%\%SelectedGame%.7z.*")
:: Compress with Date and Time in Filename
:: "C:\Program Files\7-Zip\7z.exe" a %ZIP_OPT% "%BAK_DEST%\%SelectedGame%\%SelectedGame%_%date%-%time:~0,2%.%time:~3,2%.%time:~6,2%" "%AppManifest%" "%STEAM_FLD%\common\%SelectedGame%"
"C:\Program Files\7-Zip\7z.exe" a %ZIP_OPT% "%BAK_DEST%\%SelectedGame%\%SelectedGame%" "%AppManifest%" "%STEAM_FLD%\common\%SelectedGame%"
PAUSE
GOTO :EOF

:ZIP_ERROR
ECHO ERROR: Cant locate 7z.exe
PAUSE
EXIT

:AppManErr
ECHO ERROR: Cant detect AppManifest
PAUSE
EXIT
SteamBackup.zip 1k .zip file
 

Attachments

241 - 258 of 258 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top