Use https://github.com/rschroll/rmrl respectively the fork https://github.com/naturale0/rmrl.git to convert reMarkable 2 documents and put them into a folder structure.
./rmautoconvert.py ~/Sync/remarkable/xochitl ~/Sync/remarkable/exportsSuggested usage: Use syncthing to sync the documents to a server and run rmautoconvert periodically.