In these examples, we will assume we are copying data from a source
database to a destination
database.
This is the simplest method.
- Dump the
source
database to a file.
mongodump --uri="your-mongodb-connection-uri" --db=source --out=backup/
To delete dot underscore files, you can use the following command:
sudo find . -name "._*" -exec rm -rf {} \;
This will start in the current directory and recursively search for files that start with ._
and delete them.
<!-- Using Unocss or Tailwind --> | |
<div class="grid grid-cols-[auto_1fr]"> | |
<div>A column that will be limited to the size of the content</div> | |
<div>A column that will take up the remaining space</div> | |
</div> |
[OPTIONAL] list the keygrip IDs using
gpg --list-secret-keys --with-keygrip
If ALL your private keys are on external cards like the Yubikey, you can delete them all using:
rm -r ~/.gnupg/private-keys-v1.d