mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-12-16 09:40:35 +00:00
fix readme
This commit is contained in:
parent
f7eec6ee5f
commit
942e9a7697
@ -365,6 +365,8 @@ Default is:
|
|||||||
|
|
||||||
#### `$backup_scripts`
|
#### `$backup_scripts`
|
||||||
Additional scripts to create, possible values are: mysql, psql, misc
|
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:
|
Default is:
|
||||||
|
|
||||||
|
@ -11,6 +11,6 @@ dbs=( $(mysql -h "$host" -u "$user" -p"$pass" -e 'show databases' | sed '1d;/inf
|
|||||||
for db in "${dbs[@]}"; do
|
for db in "${dbs[@]}"; do
|
||||||
mysqldump --host="$host" --user="$user" --password="$pass" --single-transaction --quick --routines --ignore-table=mysql.event "$db" > "$db".sql
|
mysqldump --host="$host" --user="$user" --password="$pass" --single-transaction --quick --routines --ignore-table=mysql.event "$db" > "$db".sql
|
||||||
wait
|
wait
|
||||||
pbzip2 -p3 "$db".sql
|
pbzip2 "$db".sql
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -12,6 +12,6 @@ dbs=( $(psql -h "$host" -U "$user" -Atc "SELECT datname FROM pg_database WHERE N
|
|||||||
for db in "${dbs[@]}"; do
|
for db in "${dbs[@]}"; do
|
||||||
ssh -l root "$host" "pg_dump -U ${user} -Fc ${db}" > "$db".sql
|
ssh -l root "$host" "pg_dump -U ${user} -Fc ${db}" > "$db".sql
|
||||||
wait
|
wait
|
||||||
pbzip2 -p3 "$db".sql
|
pbzip2 "$db".sql
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user