Editing Documentation/Maemo 5 Developer Guide/Using Generic Platform Components/Using Backup Application

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
The back-up application saves and restores user data stored in [[MyDocs folder|/MyDocs]] (by default) and setting directories/files <code>/etc/osso-af-init/gconf-dir</code> (a link to GConf database <code>/var/lib/gconf</code>), <code>/etc/osso-af-init/locale</code>, and <code>/etc/bluetooth/name</code>. It can be configured to back up other locations and files as well, by custom configuration files.
+
The back-up application saves and restores user data stored in /MyDocs (by default) and setting directories/files <code>/etc/osso-af-init/gconf-dir</code> (a link to GConf database <code>/var/lib/gconf</code>), <code>/etc/osso-af-init/locale</code>, and /etc/bluetooth/name. It can be configured to back up other locations and files as well, by custom configuration files.
The back-up application must not be disrupted by other applications writing or reading during a back-up or restore operation.
The back-up application must not be disrupted by other applications writing or reading during a back-up or restore operation.
Line 80: Line 80:
The back-up application makes it possible to execute scripts after a restore operation. There are two kinds of scripts. First, there can be scripts that are executed after every restore operation. Then there are also scripts that are executed only, if the restore is made from a back-up created in an earlier product.
The back-up application makes it possible to execute scripts after a restore operation. There are two kinds of scripts. First, there can be scripts that are executed after every restore operation. Then there are also scripts that are executed only, if the restore is made from a back-up created in an earlier product.
-
For the scripts that are used to transform data between the device software versions, the location for applications to install the scripts is /etc/osso-backup/restore.d/&lt;dir&gt;, where &lt;dir&gt; is a subdirectory for each transition between two different consecutive version of the platform. For transforming between IT-2006 and IT-2007 versions, the directory is <br />/etc/osso-backup/restore.d/it2007/. For scripts that are executed after every restore, the location is <code>/etc/osso-backup/restore.d/always</code>.
+
For the scripts that are used to transform data between the device software versions, the location for applications to install the scripts is /etc/osso-backup/restore.d/&lt;dir&gt;, where &lt;dir&gt; is a subdirectory for each transition between two different consecutive version of the platform. For transforming between IT-2006 and IT-2007 versions, the directory is <br />/etc/osso-backup/restore.d/it2007/. For scripts that are executed after every restore, the location is /etc/osso-backup/restore.d/always.
The files installed here should have the executable bit set. Any files ending with "<code>~</code>" or ".bak" are ignored, just like directories or files starting with a dot (".").
The files installed here should have the executable bit set. Any files ending with "<code>~</code>" or ".bak" are ignored, just like directories or files starting with a dot (".").
Line 101: Line 101:
* You may want to consider erasing the cached inbox contents before doing backup if your email inbox is very large. E.g. if your mail contains a lot of attachments, the cache may be in the size of 100's of megabytes. To erase the cache and prevent its backup open an xterm and do:
* You may want to consider erasing the cached inbox contents before doing backup if your email inbox is very large. E.g. if your mail contains a lot of attachments, the cache may be in the size of 100's of megabytes. To erase the cache and prevent its backup open an xterm and do:
-
rm .modest/cache/mail/imap/foo.bar__imap.gmail.com_993/folders/INBOX/*.~
+
    rm .modest/cache/mail/imap/foo.bar__imap.gmail.com_993/folders/INBOX/*.~
-
where <code>foo.bar*</code> is the name of the imap account. The size of your email may be determined by:
+
where foo.bar* is the name of the imap account. The size of your email may be determined by:
-
cd .modest
+
  cd .modest
-
du -k
+
  du -k
[[Category:Development]]
[[Category:Development]]
[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Fremantle]]
[[Category:Fremantle]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)