[OPEN SOURCE] Automatic Steam Backup/Restore Tool - Overclock.net - An Overclocking Community

Forum Jump: 

[OPEN SOURCE] Automatic Steam Backup/Restore Tool

Reply
 
Thread Tools
post #1 of 258 (permalink) Old 03-19-2011, 04:51 AM - Thread Starter
New to Overclock.net
 
Du-z's Avatar
 
Join Date: Aug 2008
Location: Australia - Brisbane
Posts: 1,430
Rep: 119 (Unique: 95)
Hi guys,

This tool has been created to replace the built in Steam backup and restore utility. Generally speaking it will compress games faster and/or smaller (depending on the settings) than the default backup feature in Steam. This tool also tends to be a lot more stable and it doesn't break the file into segments unlike the utility built into steam.

Main Features:
  • Includes a command line interface so you can setup scheduled backups.
  • After the initial Backup you have the ability to only backup games that have been updated since the previous update.
  • Choose what games to backup and restore.
  • Choose to restore to an alternative steam library.*
  • Automatically installs games after restore.*
  • Fully multithreaded and optimized for up to 8 core CPUs.
  • Choose the compression level and how many thread to use.
  • Will only use "spare" CPU time.
  • Can automatically find steam folder.
  • Checks online for new updates.
  • High compression ratio due to 7z's excellent LZMA and LZMA2 compression algorithms.

* If the game uses steams new cache format and this cache has the correct information available.

Download Here:
Steam Backup Tool
Source

Change List

This program requires .NET Framework 4.0.

Screen Shots:
Preview of version 1.6.1.1


My Programming:
Steam Backup Tool - A backup tool for Steam
Better Dice - A 3D virtual dice roller


Du-z is offline  
Sponsored Links
Advertisement
 
post #2 of 258 (permalink) Old 03-19-2011, 04:54 AM
New to Overclock.net
 
Stealth2o's Avatar
 
Join Date: Oct 2006
Location: Brooklyn, NY
Posts: 677
Rep: 36 (Unique: 36)
This looks good. Thanks! +

Quote:
Originally Posted by Cretz go_quote.gif
Scientists get large hardons from Large Hadron Colliders results.yessir.gif
Stealth2o is offline  
post #3 of 258 (permalink) Old 03-19-2011, 04:55 AM
New to Overclock.net
 
Outcasst's Avatar
 
Join Date: Aug 2007
Location: Lichfield, UK
Posts: 5,954
Rep: 295 (Unique: 271)
This is awesome, +1

"Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a tatol mses and you can sitll raed it wouthit a porbelm. This is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe."


Outcasst is offline  
Sponsored Links
Advertisement
 
post #4 of 258 (permalink) Old 03-19-2011, 04:56 AM - Thread Starter
New to Overclock.net
 
Du-z's Avatar
 
Join Date: Aug 2008
Location: Australia - Brisbane
Posts: 1,430
Rep: 119 (Unique: 95)
Quote:
Originally Posted by Stealth2o;12788668 
This looks good. Thanks! +
Quote:
Originally Posted by Outcasst;12788675 
This is awesome, +1

Thanks, I was surprised that i couldn't find anything that does this in the whole interwebs.

(implying the the internet is something you go into)


My Programming:
Steam Backup Tool - A backup tool for Steam
Better Dice - A 3D virtual dice roller


Du-z is offline  
post #5 of 258 (permalink) Old 03-19-2011, 11:29 PM - Thread Starter
New to Overclock.net
 
Du-z's Avatar
 
Join Date: Aug 2008
Location: Australia - Brisbane
Posts: 1,430
Rep: 119 (Unique: 95)
Well the script has finished and it has compressed my 501GB folder to 324GB. It worked well! smile.gif


My Programming:
Steam Backup Tool - A backup tool for Steam
Better Dice - A 3D virtual dice roller


Du-z is offline  
post #6 of 258 (permalink) Old 03-21-2011, 12:44 AM
(V)
New to Overclock.net
 
Join Date: Jan 2010
Location: Australia
Posts: 524
Rep: 20 (Unique: 20)
Good schtuff helpinghand.gif.

I dont know half of you half as well as I should like, and I like less than half of you, half as well as you deserve.
(V) is offline  
post #7 of 258 (permalink) Old 03-21-2011, 12:52 AM
a turkey is a bad man
 
robbo2's Avatar
 
Join Date: Jun 2008
Location: Beanstown
Posts: 6,430
Rep: 351 (Unique: 253)
Very good! Rep+

Lily Allen's biggest fan - HACK THE PLANET
drunken.gif 2013 and 2014 Country Cup Champions!drunken.gif
Super PI 32M 4ghz efficiency challenge
8Ghz was all too easy proof.gif and more proof.gif


robbo2 is offline  
post #8 of 258 (permalink) Old 03-21-2011, 01:05 AM
FiX
Retired Staff
 
Join Date: Jul 2009
Location: Auckland
Posts: 2,146
Rep: 142 (Unique: 115)
Code:
@echo off

setlocal

REM Location of 7z.exe (Must be command line version)
:input1
echo Where is the location of the 7z.exe file? (Command Line version)
set exe=
set /P exe=Type input: %=%
if "%exe%"=="" goto input1


REM Location of Steam folder
:input2
echo Where is the location of the steam install? Leave trailing backslash! (No \ at end) (Full directory - E.G. C:\Program Files(x86)\steam)
set root=
set /P root=Type input: %=%
if "%root%"=="" goto input2


REM Location of destination folder
:input3
echo Where do you want it to be backed up to? Leave trailing backslash! (No \ at end) (Full directory - E.G. E:\steam_backup, directory must 

exist already!)
set dest=
set /P dest=Type input: %=%
if "%dest%"=="" goto input3

echo location of Steam folder: %root%
echo Destination of backup files: %dest%

echo. 
echo Starting to backup 'steamapps' folder (Excluding common folder).
"%exe%" a -t7z "%dest%\steamapps.7z" "%root%\steamapps\*" -mx9 -xr!common > NUL
if exist "%dest%\steamapps.7z" echo '%dest%\steamapps.7z' has been backed up.

echo. 
echo Starting to backup games in 'common' folder (individually).
for /F "tokens=* usebackq" %%G in (`dir "%root%\steamapps\common" /A:D /B`) do (
echo. 
echo Starting to backup '%%G'.
"%exe%" a -t7z "%dest%\common\%%G.7z" "%root%\steamapps\common\%%G" -mx9 > NUL
if exist "%dest%\%%G.7z" echo '%%G' has been backed up.
)

echo. 
echo Finished backing up steamapps folder.


endlocal
pause
Made it take user input in .bat. No need for editing of file, might make a GUI if you want smile.gif

Quote:
Originally Posted by Manyak go_quote.gif
The inside of a PC looks all scary and complicated until you actually try and put it together. Then you realize it's nothing but a really expensive Lego set.

post-flame-small.gifNew Zealand Overclock.net Clubpost-flame-small.gif


FiX is offline  
post #9 of 258 (permalink) Old 03-21-2011, 01:09 AM - Thread Starter
New to Overclock.net
 
Du-z's Avatar
 
Join Date: Aug 2008
Location: Australia - Brisbane
Posts: 1,430
Rep: 119 (Unique: 95)
oooooh thanks FiX, if you want to make a GUI for both the Backup and restore then go ahead. I will add this into the OP

Thanks everyone else smile.gif


My Programming:
Steam Backup Tool - A backup tool for Steam
Better Dice - A 3D virtual dice roller


Du-z is offline  
post #10 of 258 (permalink) Old 03-21-2011, 01:11 AM
FiX
Retired Staff
 
Join Date: Jul 2009
Location: Auckland
Posts: 2,146
Rep: 142 (Unique: 115)
Code:
@echo off

setlocal

REM Location of 7z.exe (Must be command line version)
:input1
echo Where is the location of the 7z.exe file? (Command Line version)
set exe=
set /P exe=Type input: %=%
if "%exe%"=="" goto input1


REM Location of Steam folder
:input2
echo Where is the location of the steam install? Leave trailing backslash! (No \ at end) (Full directory - E.G. C:\Program Files(x86)\steam)
set root=
set /P root=Type input: %=%
if "%root%"=="" goto input2


REM Location of destination folder
:input3
echo Where do you want it to be backed up to? Leave trailing backslash! (No \ at end) (Full directory - E.G. E:\steam_backup, directory must 

exist already!)
set dest=
set /P dest=Type input: %=%
if "%dest%"=="" goto input3

echo location of Steam folder: %root%
echo Destination of backup files: %dest%

REM Choose backup or restore
:input4
echo Backup or Restore?
echo b/r - type one!
set type
set /P type=Type input: %=%
if "%type%"=="" goto input3
if "%type%"=="b" goto backup
if "%type%"=="r" goto restore

:restore
echo. 
echo Starting to restore 'steamapps' folder.
"%exe%" x "%root%\steamapps.7z" -o"%dest%\steamapps" > NUL
echo '%dest%\steamapps' has been restored.

echo. 
echo Starting to restore games in 'common' folder.
for /F "tokens=* usebackq" %%G in (`dir "%root%\common" /B`) do (
echo. 
echo Starting to restore '%%G'.
"%exe%" x "%root%\common\%%G" -o"%dest%\steamapps\common" -ax!steamapps.7z > NUL
echo '%%G' has been restored.
)

echo. 
echo Finished restoring steamapps folder.
goto :eof

:backup
echo. 
echo Starting to backup 'steamapps' folder (Excluding common folder).
"%exe%" a -t7z "%dest%\steamapps.7z" "%root%\steamapps\*" -mx9 -xr!common > NUL
if exist "%dest%\steamapps.7z" echo '%dest%\steamapps.7z' has been backed up.

echo. 
echo Starting to backup games in 'common' folder (individually).
for /F "tokens=* usebackq" %%G in (`dir "%root%\steamapps\common" /A:D /B`) do (
echo. 
echo Starting to backup '%%G'.
"%exe%" a -t7z "%dest%\common\%%G.7z" "%root%\steamapps\common\%%G" -mx9 > NUL
if exist "%dest%\%%G.7z" echo '%%G' has been backed up.
)

echo. 
echo Finished backing up steamapps folder.
goto :eof

:eof
endlocal
pause
Joined both backup and restore together tongue.gif
Edit: Not working fully. 1 Min

Quote:
Originally Posted by Manyak go_quote.gif
The inside of a PC looks all scary and complicated until you actually try and put it together. Then you realize it's nothing but a really expensive Lego set.

post-flame-small.gifNew Zealand Overclock.net Clubpost-flame-small.gif


FiX is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off