It is a good idea to keep a backup of the entire library, including the database.
You can just point your favorite Cloud Storage client, e.g. Dropbox, at your calibre library and have it sync.
Although to be safe, you should always pause the Dropbox/other client while calibre is running, or the two programs might end up fighting over who gets to save the latest copy of the file -- which would be bad.