mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-11-10 00:00:35 +00:00
fix readme
This commit is contained in:
parent
f7eec6ee5f
commit
942e9a7697
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user