metacat/src/scripts/bash/dump_knb.sh @ 9355
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` |