So I was trying to find a way to back up my Pre everything from my personal files to installed applications to default applications. Basically every and any file on my Pre. Here is what I found out to work best for me.
*** This also works to copy files from the emulator.***
I have determined the quickest and easiest way for me is to use rsync. Before I get into the steps to backup your Pre there are a few things which need to be done and said.
1.First this works best on Linux and Mac but is possible on Windows. (Only because of ssh setup)
2. You will need a Rooted Pre, this is very very simple and has been written up by many people.
3. You will need a SSH server setup on the comp you want to backup to. Very simple to setup on Linux and Mac. Windows is a little more difficult but still possible.
(windows should look into using OpenSSH or a similar ssh server application.) If you need help with this use your good friend Google!
4. You will need a wireless network or have usbnet set up for your Pre. (go here to find out more about usbnet at USBnet networking setup - WebOS Internals )
5. last but not least this little tutorial.
So once your Pre is rooted, and you have a SSH server set up it is basically a 1 line command that you can manipulate as you need.
1.SSH or novaterm into your Pre making sure you are connected through Wireless or usbnet.
2. run single rsync command:
what this command does is takes "/var/usr/palm/applications/com.palm.app.pdfviewer/" the pdfviewer application and copies it to SSHServerIP and places it in "/home/bob/Pre".
rsync -avz --size-only --progress /var/usr/palm/applications/com.palm.app.pdfviewer/ username@SSHServerIP:/home/bob/Pre
You can change both of those folders so you can back up any folder on your pre to any folder on your ssh server. it will only copy over files that have been changed since the last backup. So if this is your first it will copy all. if you use this for a 2nd time it will backup 0 files because there are no new files to backup.
Here is an example of the steps after you ssh into your phone. You will see:
2.Will look like:
rsync -avz --size-only --progress /var/usr/palm/applications/com.palm.app.pdfviewer/ email@example.com:/home/bob/Pre/
3. Press enter.
root@castle:rsync -avz --size-only --progress /var/usr/palm/applications/com.palm.app.pdfviewer/ firstname.lastname@example.org:/home/bob/Pre/
4. it will ask you to authorize the host
5.Please type 'yes' or 'no': yes
The authenticity of host '192.168.1.100 (192.168.1.100)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
6. Will ask for password for the user you set up on the ssh server, type it in.
Warning: Permanently added '192.168.1.100' (RSA) to the list of known hosts.
7. After you put in the correct password it will build a list of all the files then begin transferring them and it will look something like this:
8. Once it is done it will say:
building file list ...
171 files to consider
263 100% 0.00kB/s 0:00:00 (xfer#1, to-check=169/171)
227 100% 55.42kB/s 0:00:00 (xfer#2, to-check=168/171)
85 100% 13.83kB/s 0:00:00 (xfer#3, to-check=167/171)
4374 100% 388.32kB/s 0:00:00 (xfer#4, to-check=166/171)
655 100% 42.64kB/s 0:00:00 (xfer#5, to-check=165/171)
452 100% 25.97kB/s 0:00:00 (xfer#6, to-check=164/171)
And your app has been backed up.
sent 81107 bytes received 2758 bytes 4533.24 bytes/sec
total size is 166330 speedup is 1.98
Here is the rsync command to back up your entire Pre
All fies except for these folders /proc & /sys
rsync -avz --size-only --progress / username@sshserver:/Directory/To/Backup/To/
I have not seen anyone have the back up process written up using this method so I decided I would do it because this was the easiest way for me to backup my Pre.
rsync -avz --size-only --exclude proc/ --exclude sys/ --progress / username@sshserver:/Directory/To/Backup/To/
If you are interested you could even turn this into a script so you dont have to type in the rsync command everytime. This can also be done over your carriers 3g network while you are out and away from the computer.