如果使用pg_dump
,它可以--exclude-table-data
选择忽略特殊表。
但是pg_dumpall
command 没有那个选项。那么dump所有数据库时如何排除几个表呢?
使用 CentOS 7。
MongoDB 版本:3.2.15
主机名:node1
制作目录:
mkdir /mongo-metadata
Run Code Online (Sandbox Code Playgroud)
/etc/mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /mongo-metadata
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
# network interfaces
net:
port: 27017
bindIp: …
Run Code Online (Sandbox Code Playgroud)