MongoDB

mongodump —db somedb —gzip —archive > dump_’date "+%Y-%m-%d"'.gz

docker exec sh -c 'exec mongodump —db somedb —gzip —archive' > dump_’date "+%Y-%m-%d"'.gz

exec mongodump -u root -p password —authenticationDatabase admin

exec mongorestore -u root -p password —authenticationDatabase admin dump/

0 0 vote
Рейтинг статьи
Подписаться
Уведомление о
guest
0 комментариев
Inline Feedbacks
View all comments