wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

Backup database file to icloud

Open xchenLee opened this issue 4 years ago • 1 comments

The language of WCDB

Objective-C

I want to backup the db file to iCloud or the server, it seems that no API supported

what should I do, if I want to backup the database datas to cloud like iCloud or the server, and then recover it back.
in my demo project, I copy the database file from the app container, and read it with pathForResource, the database cannot be opened

(我想把数据库文件备份到云端,然后再读取下来,尝试了从app container 里的数据库路径获取到的文件,放到工程里,再尝试initWithPath来读取,发现读取失败),目前有API支持吗

xchenLee avatar Oct 31 '20 09:10 xchenLee

[WCDB][ERROR] Code:sqlite(26), Type:SQLite, ExtendedCode:26,SQL:PRAGMA synchronous='NORMAL',Message:file is encrypted or is not a databas类似于这种报错吗?

yi821661664 avatar Mar 01 '21 07:03 yi821661664

Please give more detail about this error.

Qiuwen-chen avatar Dec 30 '22 08:12 Qiuwen-chen