Editing Manual backup and restore

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:
-
There are several scenarios where you might want to manually backup and restore your [[Nokia N900|N900]]. 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 also backup problematic files.
+
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.
-
This was discussed at [http://talk.maemo.org/showthread.php?t=35037] and [http://talk.maemo.org/showthread.php?t=48488&page=2].
+
This was discussed at [http://talk.maemo.org/showthread.php?t=35037 talk.maemo.org].
-
 
+
-
== Background ==
+
-
 
+
-
=== Connectivity ===
+
-
 
+
-
As the USB mass storage mode on the phone does not provide access to the root file system, some other way of transferring backups is required. Therefore, the first prerequisite is a working TCP/IP network between the phone and the target machine. Alternatively, a microSD card could be used.
+
-
 
+
-
=== Power ===
+
-
 
+
-
We do not want our backups to drain the phone's battery, so we should only consider running the backup if we are connected to external power.
+
-
 
+
-
=== Automation ===
+
-
 
+
-
Once set up, the backups should happen automatically without intervention from the user, BUT complain loudly if they fail. This implies a script that we can schedule from cron that should perform whatever combination of tests and operations we may need. It also implies key-based access to our backup host.
+
-
 
+
-
=== Snapshots ===
+
-
 
+
-
At any given time we want a decent ability to backtrack, which means storing regular snapshots using something like rdiff-backup or rsnapshot.
+
-
 
+
-
So, what we've got so far is that we want to run a script on the N900 that tests whether we have external power (or dies), then tries to get a wireless connection to the backup server (or dies), then performs an incremental backup of the entire phone.
+
==Backup methods==
==Backup methods==
Line 88: Line 68:
dpkg -l > /root/dpkg.txt
dpkg -l > /root/dpkg.txt
-
dpkg --get-selections  > /root/dpkg-selections.txt
 
gconftool-2 -R /system/osso/connectivity/IAP > /root/iap.txt
gconftool-2 -R /system/osso/connectivity/IAP > /root/iap.txt
Line 105: Line 84:
Change <code>mypc.example.com</code> to the IP/hostname of your computer and the target directory to whatever suits you. Don't forget to make the script executable and it must be run as root of course.
Change <code>mypc.example.com</code> to the IP/hostname of your computer and the target directory to whatever suits you. Don't forget to make the script executable and it must be run as root of course.
-
The <code>dpkg -l</code> command makes a list of installed packages, <code>dpkg --get-selections</code> output can be passed directly to <code>--set-selections</code> to install/uninstall packages as they were on the device.
+
The <code>dpkg -l</code> 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.
-
 
+
-
Finally, gconftool-2 lists all internet access points (Wi-Fi and GPRS), so you can copypaste details back later.
+
==Automatic/periodic/scheduled backups==
==Automatic/periodic/scheduled backups==
Line 125: Line 102:
===Contacts===
===Contacts===
-
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 <code>/home/user/.osso-abook/db</code> and <code>/home/user/.osso-abook-backup/db</code>. The contacts will be restored after rebooting the device.
+
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 <code>/home/user/.osso-abook/db</code> and <code>/home/user/.osso-abook-backup/db</code>.
===Bookmarks===
===Bookmarks===
Line 135: Line 112:
===Calendar===
===Calendar===
-
The calendar entries are in the file <code>/home/user/.calendar/calendardb</code>. A restart is required.
+
The calendar entries are in the file <code>/home/user/.calendar/calendardb</code>.
-
 
+
-
===Conversations===
+
-
The sqlite database containing SMS data is located at <code>/home/user/.rtcom-eventlogger/*</code>. Make sure rtcom-messaging-ui is closed. Conversations can be accessed as soon as the folder is restored.
+
===Repository and packages list===
===Repository and packages list===
Line 173: Line 147:
[[Category:Power users]]
[[Category:Power users]]
-
[[Category:N900]]
 

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)