D doogal Member Licensed User Longtime User May 21, 2014 #1 I have an app that uses an sql database and this app works as it should, but now I want to add a backup feature. My wife recently had an update on her phone and it totally wiped her sd card, she lost everything. I don't want her to lose this information in the future. So I want to implement a backup feature to say her Dropbox folder, this would save her from having to type in all the information again. So my question is this: How do I implement this? Since I have never messed with RDC or anything of the sort. I have no idea where to begin. I have searched the forums for this and its still confusing. I'm just not sure where to begin other than a button that says "backup to dropbox"
I have an app that uses an sql database and this app works as it should, but now I want to add a backup feature. My wife recently had an update on her phone and it totally wiped her sd card, she lost everything. I don't want her to lose this information in the future. So I want to implement a backup feature to say her Dropbox folder, this would save her from having to type in all the information again. So my question is this: How do I implement this? Since I have never messed with RDC or anything of the sort. I have no idea where to begin. I have searched the forums for this and its still confusing. I'm just not sure where to begin other than a button that says "backup to dropbox"
LucaMs Expert Licensed User Longtime User May 21, 2014 #2 For the moment, you could try my class. I'll try to add functions, such as for DropBox. Upvote 0
D doogal Member Licensed User Longtime User May 21, 2014 #3 Thanks for the quick response. I will take a look at this, but its just going to save to the sd card. I need a remote location as my wife's card was completely erased when she did the update. Upvote 0
Thanks for the quick response. I will take a look at this, but its just going to save to the sd card. I need a remote location as my wife's card was completely erased when she did the update.
LucaMs Expert Licensed User Longtime User May 21, 2014 #4 yes, I understand. And it is also a fair criticism that has been made to the class. another solution would be to use email attachments. Upvote 0
yes, I understand. And it is also a fair criticism that has been made to the class. another solution would be to use email attachments.
D Dman Active Member Licensed User Longtime User May 22, 2014 #5 I zip my db into a folder and email it to myself as an attachment just by pressing a backup button. That way if something happens, I just unzip the backup and compile using that instead of the original db and everything is just as it was at the last backup. Upvote 0
I zip my db into a folder and email it to myself as an attachment just by pressing a backup button. That way if something happens, I just unzip the backup and compile using that instead of the original db and everything is just as it was at the last backup.
D doogal Member Licensed User Longtime User May 29, 2014 #6 Hi all, I found the DropboxSync library and I believe its the solution to my problem. However, I can't seem to sync/update the file on Dropbox. I can upload the file but it doesn't overwrite the file currently on Dropbox. I need to sync it, rename it or use dates. I'm just not sure. I would like to know how I can use the sync option. I tried manager.sync and it worked one time and then stopped. I hope someone can help. Thank you, Douglas Upvote 0
Hi all, I found the DropboxSync library and I believe its the solution to my problem. However, I can't seem to sync/update the file on Dropbox. I can upload the file but it doesn't overwrite the file currently on Dropbox. I need to sync it, rename it or use dates. I'm just not sure. I would like to know how I can use the sync option. I tried manager.sync and it worked one time and then stopped. I hope someone can help. Thank you, Douglas
Erel B4X founder Staff member Licensed User Longtime User May 29, 2014 #7 It should sync the file automatically. Make sure that you are checking the correct folder in your Dropbox account. Upvote 0
It should sync the file automatically. Make sure that you are checking the correct folder in your Dropbox account.
D doogal Member Licensed User Longtime User May 29, 2014 #8 Erel, Thanks for the reply. I have checked and it is going to the correct folder. I have deleted it manually from DropBox and tried again. The application uploads and syncs only once after that it will not do it again. Upvote 0
Erel, Thanks for the reply. I have checked and it is going to the correct folder. I have deleted it manually from DropBox and tried again. The application uploads and syncs only once after that it will not do it again.
Erel B4X founder Staff member Licensed User Longtime User May 29, 2014 #9 Are you sure that your code correctly uploads the database? Upvote 0
D doogal Member Licensed User Longtime User May 29, 2014 #10 I can click the upload button and watch it post to my Dropbox folder and it on my computer it says test.txt has been added and test.txt has been updated. This only happens once, after that when I click the upload button I see no activity on DropBox. I am using a separate folder in Apps so it shows like /Apps/XXXXX and the tutorial says I am supposed to treat this as root, so I use it like this: Code: Copy manager.UploadFile(File.DirDefaultExternal, "test.txt", "/", "test.txt") and to sync I just use the following: Code: Copy manager.Sync Upvote 0
I can click the upload button and watch it post to my Dropbox folder and it on my computer it says test.txt has been added and test.txt has been updated. This only happens once, after that when I click the upload button I see no activity on DropBox. I am using a separate folder in Apps so it shows like /Apps/XXXXX and the tutorial says I am supposed to treat this as root, so I use it like this: Code: Copy manager.UploadFile(File.DirDefaultExternal, "test.txt", "/", "test.txt") and to sync I just use the following: Code: Copy manager.Sync
D doogal Member Licensed User Longtime User May 29, 2014 #11 Thank you Erel I took another look and it does work. I was trying to up upload the same file and expecting to see a change, so I made an entry and re-uploaded the file and it worked. Thank you so much for this library, it really going to help with my app. Thank you, Douglas Upvote 0
Thank you Erel I took another look and it does work. I was trying to up upload the same file and expecting to see a change, so I made an entry and re-uploaded the file and it worked. Thank you so much for this library, it really going to help with my app. Thank you, Douglas