1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-12-16 09:40:35 +00:00

fix readme

This commit is contained in:
Norbert Varzariu 2016-01-22 10:51:37 +01:00
parent f7eec6ee5f
commit 942e9a7697
3 changed files with 4 additions and 2 deletions

View File

@ -365,6 +365,8 @@ Default is:
#### `$backup_scripts`
Additional scripts to create, possible values are: mysql, psql, misc
NOTE: this requires you to install the client packages you wish to use.
You can do this by passing an array to [$rsnapshot::package_name](#package_name)
Default is:

View File

@ -11,6 +11,6 @@ dbs=( $(mysql -h "$host" -u "$user" -p"$pass" -e 'show databases' | sed '1d;/inf
for db in "${dbs[@]}"; do
mysqldump --host="$host" --user="$user" --password="$pass" --single-transaction --quick --routines --ignore-table=mysql.event "$db" > "$db".sql
wait
pbzip2 -p3 "$db".sql
pbzip2 "$db".sql
done

View File

@ -12,6 +12,6 @@ dbs=( $(psql -h "$host" -U "$user" -Atc "SELECT datname FROM pg_database WHERE N
for db in "${dbs[@]}"; do
ssh -l root "$host" "pg_dump -U ${user} -Fc ${db}" > "$db".sql
wait
pbzip2 -p3 "$db".sql
pbzip2 "$db".sql
done