Skip to content

Sync Local Libraries with Cloud Drive

Note

This method only applies to Local Library. If you are using Cloud Library, then the library has built-in cloud synchronization function.

WonderPen's data is stored in Library. A Library is actually an ordinary folder. Therefore, when creating a new LOCAL library, you can put the folder of the library into the cloud disk and use the synchronization function of the cloud disk to synchronize document data between different devices.

Generally speaking, all kinds of cloud disks that support folder synchronization can be used, such as Dropbox, OneDrive, Nut Cloud, Baidu Netdisk, Tencent Weiyun, etc. Just choose the cloud disk you are used to.

Create a new library

To create a new library, just click Open or Create Library in the drop-down menu of the library icon on the top toolbar, as shown in the figure below:

Open or create a new library

After clicking, a folder selection dialog box will pop up. Here, navigate to the cloud disk directory installed on your local machine and select or create a new folder.

The video below is a demonstration under macOS + OneDrive. Other operating systems and cloud disk operations are similar:

To put it simply, the library is an ordinary folder. Just create a new folder in the cloud disk directory as the directory of the new library. After that, the content in the library will be synchronized through the cloud disk like an ordinary folder.

You can also copy an existing library folder to a third-party cloud disk directory, and then open it in WonderPen using Open or Create Library.

Synchronize local library

After placing the library folder into the cloud disk, the modifications in the library can be synchronized through the third-party cloud disk. The synchronized content includes all data in this library, such as documents, notes, whiteboards, attachments (mainly pictures), backups, etc.; it does not include the content in Settings.

You can click Open or Create Library in WonderPen on another device, open the local library, and select the library folder located in the cloud disk. If everything goes well, you can synchronize it just like a normal folder. library data is synchronized between different devices.

Some notes

WonderPen has used SQLite database to store library data since version 2.6. All the data in the library is stored in a single file (data.db file). When a document is modified, it means that the database file (data.db file) has changed for the third-party cloud drive, and the entire database file will be synchronized instead of just the modified documents.

When using a third-party cloud drive for synchronization, please try to avoid editing the same library on different computers at the same time to avoid data conflicts.

In addition, due to reasons such as caching, after the database in the cloud drive is updated by other computers, the changes may not be immediately visible in WonderPen. You need to exit WonderPen and reopen it to load the latest content.

To avoid data conflicts, when using a third-party cloud drive for synchronization, it is recommended that:

  1. Do not open the same library on different devices at the same time;
  2. It is recommended to exit WonderPen when leaving the current computer;
  3. If you forget to exit WonderPen when you leave the computer, and have edited the current library on other devices, it is recommended that you exit and reopen WonderPen next time you use it on this computer to clear the cache.

In addition, please note that sometimes third-party cloud drives may have synchronization delays. If there are important changes, please make sure that the cloud drive has completed synchronization before continuing. Some cloud drives (such as Jianguoyun) may lock files in certain circumstances, making it impossible to open or edit the library. In this case, you need to go to the cloud drive backend to manually unlock it.

When using cloud drive synchronization, as long as you try to avoid opening the same library on different devices at the same time, generally speaking, you will not encounter data conflicts. If a conflict has occurred, you can check the backup history. Therefore, it is recommended to ALWAYS turn on automatic backup and set up additional backups. For details, please refer to Backup and Restore.

WARNING

When using cloud disk to synchronize data, please pay attention to avoid data conflicts.