Remarkable has that built in. They offer their own cloud service that makes it trivial to sync your files.
My flow is:
1. (Optional) Upload something on Google drive.
2. Copy it on remarkable. It syncs automatically on cloud.
3. Edit as I wish.
4. Upload final copy to Google Drive