adrian / upm-android

Android version of Universal Password Manager.
http://upm.sourceforge.net/
76 stars 45 forks source link

Backup path for database #11

Closed hampers19 closed 12 years ago

hampers19 commented 12 years ago

Hi Adrian

On my HTC Hero UPM saved the backup to sdcard/upm.db

I now have a Samsung Galaxy S2 and after dowloading UPM I tried to restore from the sdcard but keep getting the error message "The file to restore from doesn't exist [/mnt/sdcard/upm.db]

I have tried all I know to change the path but to no avail - do you have any advice?

Many thanks Neil

adrian commented 12 years ago

Hi Neil,

Make sure you're SD isn't mounted on your computer. If it is it won't be accessible by Android.

If you create a test database on your Galaxy S2 and back it up can you see the upm.db file on your SD card?

UPM uses a generic "External Storage" (http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()) directory to store the database. This is device specific but generally speaking it should be just the root of your SD card.

hampers19 commented 12 years ago

Hi Adrian

Thanks for the help.

I created a new file and backed it up.

Unfortunately I still couldn't see it using the phones own file management system but downloaded the Samsung Kies software which led to an update of the firmware.

After this had all happened I connected the phone to the pc by cable and I could see all the files, both on the phone and on the SD card.

The new backup that I had created was saved onto the phone memory so I copied the old file from the SD card and replaced the file on the phone memory with it. When I opened UPM I restored, and then when asked for my master password it was the original master that was required and all my existing passwords were now visible.

Not quite sure if it was the Kies programme, the firmware update or just connecting via cable that made all the files visible but whatever, I am now happy again.

Thanks once again for your help and for writing a great app.

Best regards Neil

-----Original Message----- From: Adrian Smith [mailto:reply+i-2394552-7ca38b71e40619fbf66189717072dbd229cb86d7-1229317@rep ly.github.com] Sent: 30 November 2011 12:57 To: hampers19 Subject: Re: [upm-android] Backup path for database (#11)

Hi Neil,

Make sure you're SD isn't mounted on your computer. If it is it won't be accessible by Android.

If you create a test database on your Galaxy S2 and back it up can you see the upm.db file on your SD card?

UPM uses a generic "External Storage" (http://developer.android.com/reference/android/os/Environment.html#getExter nalStorageDirectory()) directory to store the database. This is device specific but generally speaking it should be just the root of your SD card.


Reply to this email directly or view it on GitHub:

https://github.com/adrian/upm-android/issues/11#issuecomment-2959338

No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1873 / Virus Database: 2102/4648 - Release Date: 11/30/11

I am using the free version of SPAMfighter. We are a community of 7 million users fighting spam. SPAMfighter has removed 3326 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message