Re: Back up a profile
NoBrainsIncluded <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
AL Mills schreef: > I want to try repairing a problem with Firefox, but I want to back up my > profile first. How? > > AL Well, For those that work with Win2K and are able to change this batchfile to fill their every need... <snip> @echo off REM prof.bat REM xcopy exit codes: REM 0 Files were copied without error. REM 1 No files were found to copy. REM 2 The user pressed CTRL+C to terminate xcopy. REM 4 Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or syntax REM 5 Disk write error occurred. REM Errorlevel statements always high to low! REM This routine saves the Firefox/Sunbird profiles into a different folder. REM Supposed to work as an incremental backup routine. :VARIABLES set firesource="%userprofile%\Application Data\Mozilla\Firefox\Profiles\*.*" set sunsource="%userprofile%\Application Data\Mozilla\Sunbird\Profiles\*.*" set firedest="E:\Data\Zarchive\Mozilla\%username%Zilla\Firefox\Profiles" set sundest="E:\Data\Zarchive\Mozilla\%username%Zilla\Sunbird\Profiles" set thundersource="%userprofile%\Application Data\Thunderbird\Profiles\*.*" set thunderdest="E:\Data\Zarchive\Mozilla\%username%Zilla\Thunderbird\Profiles" set options=/E/I/H/R/K/O/D/Y set firecache="E:\Data\Zarchive\Mozilla\%username%Zilla\Firefox\Profiles\default.dq1\Cache\*" set zip="C:\Program Files\7-Zip\7z.exe" set zipped="E:\Data\Zarchive\Mozilla\%username%Zilla\Firefox\Profiles\default.dq1\ZipCache.zip" goto FIREFOX :FIREFOX %zip% a -tzip %zipped% %firecache% del /Q %firecache% xcopy %firesource% %firedest% %options% echo FIREFOX DONE goto SUNBIRD :SUNBIRD xcopy %sunsource% %sundest% %options% echo SUNBIRD DONE goto THUNDERBIRD :THUNDERBIRD xcopy %thundersource% %thunderdest% %options% echo THUNDERBIRD DONE goto END :END exit </snip>