Skip to content

Commit 87ecc1a

Browse files
updated scripts
1 parent c1d1ed9 commit 87ecc1a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

scripts/dump.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/bash env
2+
username=$1
3+
password=$2
4+
uri=$3
5+
6+
mongodump --uri mongodb+srv://$username:$password@$uri/feedfarer

scripts/restore.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/bash env
2+
path_to_dump=$1
3+
username=$2
4+
password=$3
5+
6+
mongorestore -d feedfarer $1 --username=$2 --password=$3 --authenticationDatabase=admin
File renamed without changes.

0 commit comments

Comments
 (0)