Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコマンドを使用して、展開したデータベースからデータを正常にバックアップしました。
mongodump admin -u user -p password
パスワードを非表示にしてこれを自動的に行うシェルスクリプトはありますか(誰かがスクリプトを取得してもパスワードを保護するため)?
読み取り専用ユーザーで Ariel によるソリューションを実装する必要があります。これにより、誰かがまだスクリプトを入手できた場合の被害が制限されます。また、パスワードを暗号化して保存し、バックアップを実行するスクリプトで復号化することもお勧めします。