Cloud Sync
Paperlib use MongoDB Atlas as the cloud database backend. You can create your own cloud database and use it to sync your Paperlib data across your devices. The free tier of MongoDB Atlas is enough for Paperlib. When everything is set up, you can safely store the metadata of your papers in the cloud without any maintenance operation.
Create a MongoDB Atlas DB
- Open https://account.mongodb.com/account/login, sign up and login to your account.
- Choose the free dataset plan.
- Create a database, select the best server location according to your country.
- set the superuser of the database.
- Go to the App Services page, create a APP.
Connect Atlas, rename your APP, select location for deployment.
6.Since then, the MongoDB Atlas is ready.
Create a User
A User is a person who can access the cloud database.
- In Realm Tab, click
App Users
, clickAuthentication Providers
.
- Turn on the
Email Password Authentication
. ChooseAutomatically confirm users
as the user confirmation method.Password Reset URL
is not required, just leave a random URL. ClickSave Draft
.
- Click the upper banner
REVIEW DRAFT & DEPLOY
to apply previous settings.
- Back to the User page, Click
Add New User
to create a user.
- Sinc then, you've created a user.
Create a Data Table.
The data scheme can be automatically created based on the data sent by the Paperlib APP.
- In the
Device Sync
page, clickStart Sync
. It enables the your APP to sync data with the backend database cluster. In the popup dialog, clickNo thanks, continue to Sync
.
- Open the
Development Mode
to allow MongoDB Altas automatically create data scheme based on the data sent by the Paperlib APP. Other configurations are as shown below.
⚠️ Please uncheck the require checkbox of
partition
.
Click
Enable Sync
.Click the upper banner
REVIEW DRAFT & DEPLOY
again.Since then, the cloud database is ready.
Connect Paperlib to your MongoDB Atlas DB
- Open the preference window of Paperlib, click
Cloud
tab, input your MongoDB Atlas APP ID, email and password of the user you created.
- Click
Login
. If the sync is successful, you can see some writing logs after importing a paper to Paperlib.
Now, everthing is ready, enjoy Paperlib with cloud sync.
Sync PDF Files
Since PDF storage may cost a lot of cloud space, we recommand to use onedrive (or dropbox etc.) or webDAV to sync your PDF files accross devices.
For example, on device A, choose C:/Onedrive/mypaperlib
as your library folder. On the other device B, choose /user/xxx/Onedrive/mypaperlib
as the library folder.