bacula: Added PostgreSQL support to bacula_catalog_dump.
This commit is contained in:
parent
29b5d1bd5c
commit
d8dc133da5
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ EOF
|
|||
MYSQL_HOME=${working_dir} mysqldump ${db_name} > ${backupfile}
|
||||
rm ${working_dir}/my.cnf
|
||||
;;
|
||||
PostgreSQL)
|
||||
echo "${db_password}" > ${working_dir}/.pgpass
|
||||
HOME=${working_dir} pg_dump -c ${db_address} -U ${db_user} \
|
||||
${db_name} > ${backupfile}
|
||||
rm ${working_dir}/.pgpass
|
||||
;;
|
||||
SQLite)
|
||||
echo "vacuum;" | sqlite3 ${working_dir}/bacula.db
|
||||
echo ".dump" | sqlite3 ${working_dir}/bacula.db > ${backupfile}
|
||||
|
|
Loading…
Add table
Reference in a new issue