Commit 96bd706f authored by Dave Griffiths's avatar Dave Griffiths

paranoid backup mode

parent c2181df9
...@@ -1806,6 +1806,11 @@ ...@@ -1806,6 +1806,11 @@
"getting-db" "getting-db"
"http://192.168.2.1:8889/symbai.db" "http://192.168.2.1:8889/symbai.db"
(string-append "/sdcard/symbai/symbai.db")) (string-append "/sdcard/symbai/symbai.db"))
;; save paranoid backup
(http-download
"getting-db"
"http://192.168.2.1:8889/symbai.db"
(string-append "/sdcard/symbai/backup/symbai-" (date-time->string (date-time)) ".db"))
(http-download (http-download
"getting-log" "getting-log"
"http://192.168.2.1:8889/log.txt" "http://192.168.2.1:8889/log.txt"
......
...@@ -96,6 +96,8 @@ public class starwisp extends StarwispActivity ...@@ -96,6 +96,8 @@ public class starwisp extends StarwispActivity
File filesdir = new File(m_AppDir+"/files/"); File filesdir = new File(m_AppDir+"/files/");
filesdir.mkdirs(); filesdir.mkdirs();
File backupdir = new File(m_AppDir+"/backup/");
backupdir.mkdirs();
// build static things // build static things
m_Scheme = new Scheme(this); m_Scheme = new Scheme(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment