Revision 9139
Added by Jing Tao almost 10 years ago
src/scripts/bash/dump_knb.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
DB_NAME=knb |
|
4 |
DUMP_FILE=/var/lib/postgresql/knb_dump |
|
5 |
|
|
6 |
echo "start to dump database by a single thread at" |
|
7 |
echo `date` |
|
8 |
|
|
9 |
sudo su - postgres -c "pg_dump -Fc $DB_NAME > $DUMP_FILE" |
|
10 |
echo "end to dump database by a single thread at" |
|
11 |
echo `date` |
Also available in: Unified diff
Add a script to dump the knb database.