backup database

cnicolapc

Active Member
Licensed User
Longtime User
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:
B4X:
File.Copy(File.DirRootExternal,"Libri.db", File.DirRootExternal,"libri.bak")
Restore:
B4X:
File.Copy(File.DirRootExternal,"Libri.bak", File.DirRootExternal,"libri.db")
 
Top