|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Premise is that there are many backup utilities that will backup/restore either dirs or the whole ROM, but not just for a specific apps settings. There are many ways that dev could use to store their settings for a given app, but getting them all to do the same way is "difficult". However, if program A had it's settings in a settings.ini (or whatever name) and that specific file could be backed up and restored later after a hard reset or new ROM installed, it would make the flashing a ROM even easier since UC came out.
My idea is for an app that works sort of like AppToDate, in that it will parse a collection of ini files in a directory to determine what a given progam uses for it's configuation (files or reg keys) and will backup/restore them. Basically all that someone needs to do is: - Extract the UMCe2.zip to a folder on their Storage Card - Register Mortscript (just click on it once, from this point on you can just click on a script and it will run.) - Place the INI files that define the files or keys of the app that you'd like to backup/restore into the \Storage Card\UCMe2\ini folder. I have posted a small collection of some INI files as examples - If you'd like startmenu shortcuts, I attached a few dummy.exe files that you can put into the UCMe2 folder so you can make shortcuts. - Run the UCMe2_Backup and it will read every INI file in the ini folder and store the backup files in \Storage Card\UCMe2\Backup - Run the UCMe2_Restore and it will read every INI file in the ini folder are restore the backups I want the app do do a few things: * to run start to finish unattended... start the program and it just runs, with no questions asked. (for scheduling purposes) * the config ini for apps need to be simple to read/edit, so user community can post/share them, or be created by the original app devs ![]() Feel free to create your own INI files and post them here for others to share I have updated the scripts to include the SDConfigCE tool, to create a new SDConfig.txt based on the files that you have placed in the CABS subfolder. Additionally, I have included XCopyCE support in the created SDConfig.txt file to copy files placed in the Files subfolder to the device. (added test sdconfigce.zip to attempt to detect devices with internal storage vs. storage card and SHOULD manage other ROM languages)
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 6th May 2009 at 05:24 PM.. |
| Sponsored Links |
|
#2
|
|||||||
|
|||||||
|
Todo list:
Quote:
Bug List: Quote:
Quote:
Quote:
Quote:
Quote:
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 25th March 2009 at 04:43 PM.. |
|
#3
|
||||
|
||||
|
How to make your own INI file:
The ini file is a very simple thing to make as it is basically just a text file with a few bracketed headers (sections) and values in them. The easiest way to do so, is to place a copy of the template on your PC desktop and open it with notepad. Then use the freeware tool CERegEditor ( http://ceregeditor.mdsoft.pl/ ) to read your device's registry... MOST apps save their customization in: HKEY_CURRENT_USER\Software\ (App Publisher) \ (App Name) There are plenty of sample files to use as references. If you need help, I'm certain that someone in this community can help. PocketBreeze.ini Quote:
Quote:
Quote:
[UCMe2] AppName = Friendly name for future use subdir = subfolder to store the files Validate = condition to look for before restoring (either a filepath and name or reg key... Reg key must be formatted like ROOT,KEY) [regkey] filename1 = regkey to backup filename2= other regkey [Files] destinationfilename1.ext = source filename with full path destinationfilename2.ext = source filename with full path Just create an ini file for each app to backup
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 20th March 2009 at 06:39 PM.. |
|
#4
|
|||
|
|||
|
**** Reserved for suggestions or requests
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 13th March 2009 at 01:37 PM.. |
|
#5
|
|||
|
|||
|
I'm thinking of adding a switch to the ini files as a block to prevent backing up certain apps...
It would be used to "install" an app that only needs file copy like an exe or shortcuts or similar... no sense of copying back those files for backup, as they would never change. an entry in the ini like: [UCMe2] RestoreOnly = 1
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
|
|
#6
|
|||
|
|||
|
Would it make a difference to anyone if I CREATED new app shortcuts, or just copied the old ones for backup/restore?
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
|
|
#7
|
|||
|
|||
|
Another optional ini setting should be:
[UCMe2] Validate = <fullpath\file> or Reg key Which would only restore the backups of the appropriate reg key or path\file exists. No sense restoring data for an app if it isn't yet installed.
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 13th March 2009 at 01:37 PM.. |
|
#8
|
|||
|
|||
|
hmmm...
I've added a bit of a GUI to the backup process, just to see something while it runs. I'll get around to doing the same to the restore mode... UCMe2.mscr Code:
ScriptDir = SystemPath("ScriptPath")
IniFiles = ScriptDir \ '*.ini'
StatusType(ST_LIST)
StatusInfo("UCMe2 Backup", "Backup process running")
ForEach F in files (IniFiles)
AppName = IniRead(F,"UCMe2","appname")
SD = IniRead(F,"UCMe2","subdir")
RestoreOnly = IniRead(F,"UCMe2","RestoreOnly")
StatusShow()
StatusMessage( AppName, ST_LIST, TRUE )
If (RestoreOnly = False)
MkDir(ScriptDir \ SD)
ForEach K, V in iniKeys (F,"regkey")
RunWait(Scriptdir\"SKTools.exe","#REXP(" & V & ") #FNAME(" & ScriptDir \ SD \ K & ".reg)")
StatusMessageAppend( "." )
EndForEach
ForEach K, SettingsFile in iniKeys (F,"Files")
copy (SettingsFile, ScriptDir \ SD \ K ,TRUE)
StatusMessageAppend( "." )
EndForEach
StatusMessageAppend( "OK" )
ElseIF
StatusMessageAppend( " - Skipped by RestoreOnly value" )
EndIf
EndForEach
StatusMessage( "Backup Complete" )
WriteStatusHistory( Scriptdir \ "BackupLog.txt" )
StatusMessage( "Window closing in 5 seconds" )
Sleep( 5000 )
StatusType(ST_HIDDEN)
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
|
|
#9
|
|||
|
|||
|
Updated the scripts a bit and made a GUI menu... but that has limited value, beyond my playing with MortScript
![]() here is a template of the current ini entires, but most of them aren't necessary... see the examples I already have in the zip. Code:
[UCMe2] appname = (descriptive Name) subdir = (subfolder name) RestoreOnly = 0/1 (1 = do not back up this app) Validate = <fullpath\file> or Regkey HKLM,Software\appname\key (NOTE the comma in the reg key) [regkey] key1="HKEY_CURRENT_USER\Software\AppName\etc" key2="HKEY_LOCAL_MACHINE\Software\AppName\etc" [Files] backupFilename.ext=Fullpath to sourcefilename.ext anotherbackupFilename.ext=Fullpath to sourcefilename.ext andanotherFilename.ext=Fullpath to sourcefilename.ext
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
Last edited by Radimus; 11th March 2009 at 07:09 PM.. |
|
#10
|
|||
|
|||
|
rilphone2.ini
Quote:
__________________
AT&T Fuze Radio: RAPH_Radio_1.12.25.19 Rom: [WWE]At0mAng_V52_03-23-2009 Quote:
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|