diff --git a/README.txt b/README.txt index d6acf66..53fdba4 100644 --- a/README.txt +++ b/README.txt @@ -35,7 +35,8 @@ mysql-nextcloud # Here are some useful tips for mongo # dump and restore example: -mongodump --host localhost --port 27017 -d portfolio -o /db_backups/db_dump_2023_04_07 -u username -p password --authenticationDatabase admin -mongorestore --host localhost --port 27017 -d portfolio -u username -p password --authenticationDatabase admin /db_backups/db_dump_2023_04_07/unboundedpress +# this is done through the container: docker exec it mongo sh +mongodump --host localhost --port 27017 -d portfolio -o /db_backups/db_dump_2025_02_04 -u username -p password --authenticationDatabase admin +mongorestore --host localhost --port 27017 -d portfolio -u username -p password --authenticationDatabase admin /db_backups/db_dump_2025_02_04/portfolio # here is an example of a file upload through restheart: curl -v -u user:pass -X POST -F 'properties={"filename":"filename"}' -F "file=@filepath_here" https://unboundedpress.org/api/scores.files