C cnicolapc Active Member Licensed User Longtime User Feb 7, 2012 #1 Hi, I'm trying to backup a database (Example: data.db) by making a copy (eg: data.bak). But when I copy the backup file to restore your data restored. I've seen in dirRootExternal that files are created with different extensions data.db, data.db-shm, wal-date. What could be the problem? thank you very much Backup: Code: File.Copy(File.DirRootExternal,"Libri.db", File.DirRootExternal,"libri.bak") Restore: Code: File.Copy(File.DirRootExternal,"Libri.bak", File.DirRootExternal,"libri.db")
Hi, I'm trying to backup a database (Example: data.db) by making a copy (eg: data.bak). But when I copy the backup file to restore your data restored. I've seen in dirRootExternal that files are created with different extensions data.db, data.db-shm, wal-date. What could be the problem? thank you very much Backup: Code: File.Copy(File.DirRootExternal,"Libri.db", File.DirRootExternal,"libri.bak") Restore: Code: File.Copy(File.DirRootExternal,"Libri.bak", File.DirRootExternal,"libri.db")
klaus Expert Licensed User Longtime User Feb 7, 2012 #2 Be careful, in the two code lines you are mixing up lower case and upper case characters. With correct names it works, tested for another user. Best regards. Upvote 0
Be careful, in the two code lines you are mixing up lower case and upper case characters. With correct names it works, tested for another user. Best regards.
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2012 #3 These two files are the database journal files. Upvote 0
C cnicolapc Active Member Licensed User Longtime User Feb 7, 2012 #4 Thank you very much. Nicola Upvote 0