-
A computer (tested on Windows 10, but I don't see any reason it won't work with macOS or Linux).
-
A LineageOS 16/17 compatible phone (LineageOS 16 is recommended, some users reported random crash on LineageOS 17).
-
Download the minimal ADB from XDA Developers Forum and unzip it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup DB | |
docker run \ | |
--rm \ | |
--link running_mongo:mongo \ | |
-v /data/mongo/backup:/backup \ | |
mongo \ | |
bash -c ‘mongodump --out /backup --host $MONGO_PORT_27017_TCP_ADDR’ | |
# Download the dump | |
scp -r USER@REMOTE:/data/mongo/backup ./backup | |