readme tweak
This commit is contained in:
parent
2da7cd7864
commit
e57dec7cd8
|
|
@ -35,7 +35,8 @@ mysql-nextcloud
|
||||||
|
|
||||||
# Here are some useful tips for mongo
|
# Here are some useful tips for mongo
|
||||||
# dump and restore example:
|
# 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
|
# this is done through the container: docker exec it mongo sh
|
||||||
mongorestore --host localhost --port 27017 -d portfolio -u username -p password --authenticationDatabase admin /db_backups/db_dump_2023_04_07/unboundedpress
|
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:
|
# 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
|
curl -v -u user:pass -X POST -F 'properties={"filename":"filename"}' -F "file=@filepath_here" https://unboundedpress.org/api/scores.files
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue