<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=88.67.79.67</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=88.67.79.67"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/88.67.79.67"/>
	<updated>2026-04-22T04:48:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=User:Jebba/Backups&amp;diff=48556</id>
		<title>User:Jebba/Backups</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=User:Jebba/Backups&amp;diff=48556"/>
		<updated>2010-07-09T21:06:01Z</updated>

		<summary type="html">&lt;p&gt;88.67.79.67: /* Backups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Backups=&lt;br /&gt;
Thankfully, pre-bricking, I had made a backup. There are a billion different ways to do this, but one quick way is good old rsync. This script backs up everything except the --excluded directories which are either things I don&#039;t want to back up (cities) or things you can&#039;t/shouldn&#039;t back up (/proc).&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 rsync \&lt;br /&gt;
        -avv -ult --progress --stats \&lt;br /&gt;
        --numeric-ids \&lt;br /&gt;
        --rsh=ssh \&lt;br /&gt;
        --exclude /home/user/MyDocs/cities \&lt;br /&gt;
        --exclude /home/user/MyDocs/.sounds \&lt;br /&gt;
        --exclude /proc \&lt;br /&gt;
        --exclude /dev \&lt;br /&gt;
        --exclude /sys \&lt;br /&gt;
        --exclude /syspart \&lt;br /&gt;
        root@burger:/ \&lt;br /&gt;
        /home/jebba/BACKUPS/burger/&lt;/div&gt;</summary>
		<author><name>88.67.79.67</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Manual_backup_and_restore&amp;diff=22340</id>
		<title>Manual backup and restore</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Manual_backup_and_restore&amp;diff=22340"/>
		<updated>2010-07-09T20:29:51Z</updated>

		<summary type="html">&lt;p&gt;88.67.79.67: /* Script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several scenarios where you might want to manually backup and restore your phone. Using manual methods (as opposed to using osso-backup) is convenient for advanced users (to have more control over their phone), scheduling backups with fcron and the like, starting from scratch (if you want to wipe the phone and restore file-by-file) - because osso-backup can backup also problematic files.&lt;br /&gt;
&lt;br /&gt;
This was discussed at [http://talk.maemo.org/showthread.php?t=35037 talk.maemo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Backup methods==&lt;br /&gt;
&lt;br /&gt;
===Copying===&lt;br /&gt;
&lt;br /&gt;
This script backs up contacts (database and also exports them with osso-addressbook-backup for safety), conversations, calendar, bookmarks, repository and packages list to external memory card&#039;s directory Backup which then contains subdirectories named with date and time when the backup was performed. The path is also definable. For example: &amp;quot;Memory_card/Backup/2010-03-03_00-00&amp;quot;. It also displays notification during backup, because it was made to be used with [[fcron]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Script====&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 path=/media/mmc1/Backup/`date +&amp;quot;%F_%H-%M`&lt;br /&gt;
 &lt;br /&gt;
 run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&amp;quot;Making backup...&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 mkdir -p &amp;quot;$path&amp;quot;/home/user/.bookmarks&lt;br /&gt;
 mkdir    &amp;quot;$path&amp;quot;/home/user/.calendar&lt;br /&gt;
 mkdir    &amp;quot;$path&amp;quot;/home/user/.osso-abook&lt;br /&gt;
 mkdir    &amp;quot;$path&amp;quot;/home/user/.osso-abook-backup&lt;br /&gt;
 mkdir    &amp;quot;$path&amp;quot;/home/user/MyDocs&lt;br /&gt;
 mkdir -p &amp;quot;$path&amp;quot;/var/lib/hildon-application-manager&lt;br /&gt;
 &lt;br /&gt;
 cp    /home/user/.bookmarks/MyBookmarks.xml*                &amp;quot;$path&amp;quot;/home/user/.bookmarks&lt;br /&gt;
 cp    /home/user/.calendar/calendardb                       &amp;quot;$path&amp;quot;/home/user/.calendar&lt;br /&gt;
 cp -r /home/user/.osso-abook/db                             &amp;quot;$path&amp;quot;/home/user/.osso-abook&lt;br /&gt;
 cp -r /home/user/.osso-abook-backup/db                      &amp;quot;$path&amp;quot;/home/user/.osso-abook-backup&lt;br /&gt;
 cp -r /home/user/.rtcom-eventlogger                         &amp;quot;$path&amp;quot;/home/user&lt;br /&gt;
 cp -r /home/user/MyDocs/.documents                          &amp;quot;$path&amp;quot;/home/user/MyDocs&lt;br /&gt;
 cp    /var/lib/hildon-application-manager/catalogues*       &amp;quot;$path&amp;quot;/var/lib/hildon-application-manager&lt;br /&gt;
 cp    /var/lib/hildon-application-manager/packages.backup   &amp;quot;$path&amp;quot;/var/lib/hildon-application-manager&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;osso-addressbook-backup -e &amp;quot;$path&amp;quot;/osso-addressbook-backup&amp;quot; | su - user&lt;br /&gt;
 &lt;br /&gt;
 run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&amp;quot;Backup created&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===osso-backup (what is backed up by it)===&lt;br /&gt;
&lt;br /&gt;
[[Documentation/Maemo 5 Developer Guide/Generic Platform Components/Using Backup Application|osso-backup]] is the default Backup application on the phone. You can use it for &amp;quot;manual&amp;quot; backup, because it produces standard .zip compressed files which can be opened on any system. The list of files that osso-backup backs up can be obtained by making a backup with it and opening these zip files (the list is too long for this wiki page).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===osso-addressbook-backup===&lt;br /&gt;
&lt;br /&gt;
It is an executable which exports (or imports) address book to a vCard v3.0 format. It is used by osso-backup, but it can also be manually executed which is great for making a backup. You have to execute it as user &amp;quot;user&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 osso-addressbook-backup -e /path/file&lt;br /&gt;
&lt;br /&gt;
And if you&#039;re executing it from a root terminal:&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;osso-addressbook-backup -e /path/file&amp;quot; | su - user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===rsync===&lt;br /&gt;
&lt;br /&gt;
rsync is standard Linux/Unix file and directory synchronization tool. It is in extras repository. An example backup script is shown here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Script====&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 if [ `whoami` != &amp;quot;root&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;Please run as root to preserve file ownership.&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 dpkg -l &amp;gt; /root/dpkg.txt&lt;br /&gt;
 &lt;br /&gt;
 gconftool-2 -R /system/osso/connectivity/IAP &amp;gt; /root/iap.txt&lt;br /&gt;
 &lt;br /&gt;
 rsync   -avz                    \&lt;br /&gt;
         --numeric-ids           \&lt;br /&gt;
         --exclude=/dev          \&lt;br /&gt;
         --exclude=/media        \&lt;br /&gt;
         --exclude=/mnt/initfs   \&lt;br /&gt;
         --exclude=/proc         \&lt;br /&gt;
         --exclude=/sys          \&lt;br /&gt;
         /                       \&lt;br /&gt;
         mypc.example.com:/home/archive/mytablet/&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;mypc.example.com&amp;quot; to the IP/hostname of your computer and the target directory to whatever suits you. Don&#039;t forget to make the script executable and it must be run as root of course.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dpkg -l&amp;quot; command makes a list of installed packages and gconftool-2 lists all internet access points (Wi-Fi and GPRS), so you can copypaste details back later.&lt;br /&gt;
&lt;br /&gt;
==Automatic/periodic/scheduled backups==&lt;br /&gt;
&lt;br /&gt;
Maemo currently does not provide an option to schedule backups nor does the osso-backup have interface to be run from command line and thus be scheduled. So the backup scripts needs to be written manually. You get them here (or you write your own), but to schedule them periodically you need fcron or similar. The scheduling part is covered in detail on [[fcron]] wiki page. With combining these two wiki pages you can have fully working automatic backups.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Wipe methods==&lt;br /&gt;
&lt;br /&gt;
Wiping the device clean is achieved with reflashing. This is covered in the [[updating the firmware]] article and similar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Restore methods==&lt;br /&gt;
&lt;br /&gt;
Restoring is the hardest part in this process and you need to have a little knowledge about your system, otherwise backup and restore rather with osso-backup. It is a good choice to perform a full backup after a successful setup/reflash/restore.&lt;br /&gt;
&lt;br /&gt;
Restoring entries below were made by the author of the rsync backup script, but they are very similar to any restoring process. Also don&#039;t forget that the applications which use the files you are restoring need to be closed/stopped/killed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Contacts===&lt;br /&gt;
&lt;br /&gt;
You need to create a dummy entry before restoring contacts. Run the contacts application first and create a contact, anything will do. Then exit the contacts application and restore the files in &#039;&#039;&#039;/home/user/.osso-abook/db&#039;&#039;&#039; and &#039;&#039;&#039;/home/user/.osso-abook-backup/db&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Bookmarks===&lt;br /&gt;
&lt;br /&gt;
Close the browser first, then simply copy the files from your archive to the phone to &#039;&#039;&#039;/home/user/.bookmarks&#039;&#039;&#039;. The bookmarks should appear immediately.&lt;br /&gt;
&lt;br /&gt;
The bookmarks are saved in &#039;&#039;&#039;MyBookmarks.xml&#039;&#039;&#039; file, so this is the one that you really need, other files are thumbnails and the like.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Calendar===&lt;br /&gt;
&lt;br /&gt;
The calendar entries are in the file &#039;&#039;&#039;/home/user/.calendar/calendardb&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Repository and packages list===&lt;br /&gt;
&lt;br /&gt;
These are located in &#039;&#039;&#039;/var/lib/hildon-application-manager&#039;&#039;&#039;, files &#039;&#039;&#039;catalogues.backup&#039;&#039;&#039;, &#039;&#039;&#039;catalogues2.backup&#039;&#039;&#039; and &#039;&#039;&#039;packages.backup&#039;&#039;&#039;. These can&#039;t be just copied back, because osso-backup uses them in its own way (asks which applications should be reinstalled), but you can use them as list of what you had installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===IM/Chat/SIP accounts===&lt;br /&gt;
&lt;br /&gt;
These accounts are stored in /var/lib/gconf/apps/telepathy/mc/accounts. It&#039;s probably a good idea to set your presence to &amp;quot;off&amp;quot; before trying to restore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===E-mail (Modest)===&lt;br /&gt;
&lt;br /&gt;
Restoring /home/users/.modest and /var/lib/gconf/apps/modest doesn&#039;t work properly. I had to create the email server settings, but at least the old email did come back. Actually, I think it might have worked, but the mailbox didn&#039;t appear. I discovered that the old mailboxes were there when I looked for them in Menu-&amp;gt;View and chose one of the mailboxes.&lt;br /&gt;
&lt;br /&gt;
The rabbit hole goes deeper. I didn&#039;t notice there was a problem after restoring, as I use a special email address for my tablet and it didn&#039;t get any email for a while, so I was quite happy accessing my recovered emails. When a new email arrived, it killed modest, and I was unable to restart it - the UI would show up briefly before modest died. The only way I could make modest run without crashing was to rename /home/user/.modest to /home/user/.modest.xxx.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===RSS Feeds===&lt;br /&gt;
&lt;br /&gt;
Close RSS application and copy files to /home/user/.osso_rss_feed_reader.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Wi-Fi and GPRS access points===&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to manually re-enter them, but you can copypaste details from the file created with rsync backup script (iap.txt).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
&lt;br /&gt;
====gPodder====&lt;br /&gt;
&lt;br /&gt;
Close gPodder and copy its config directory to /home/user/.config/gpodder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====OpenVPN Applet====&lt;br /&gt;
&lt;br /&gt;
If you use the [[OpenVPN]] Applet the configuration files are stored in &amp;lt;code&amp;gt;/etc/openvpn&amp;lt;/code&amp;gt;. After you copy them be sure to have them owned by user &amp;quot;root&amp;quot;, group &amp;quot;root&amp;quot;, and protected so that user (root) has rw privileges, and no one else has anything.&lt;br /&gt;
&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>88.67.79.67</name></author>
	</entry>
</feed>