mirror of
https://github.com/deajan/obackup.git
synced 2024-12-25 06:53:41 +01:00
Added new config values to update
This commit is contained in:
parent
c0e9c14fa2
commit
7ccc469dd6
@ -134,6 +134,10 @@ function RewriteConfigFiles {
|
||||
sed -i'.tmp' '/^BACKUP_SIZE_MINIMUM=*/a\'$'\n''GET_BACKUP_SIZE=yes\'$'\n''' "$config_file"
|
||||
fi
|
||||
|
||||
if ! grep "^MYSQLDUMP_OPTIONS=" "$config_file" > /dev/null; then
|
||||
sed -i'.tmp' '/^HARD_MAX_EXEC_TIME_DB_TASK=*/a\'$'\n''MYSQLDUMP_OPTIONS="--opt --single-transaction"\'$'\n''' "$config_file"
|
||||
fi
|
||||
|
||||
if ! grep "^RSYNC_REMOTE_PATH=" "$config_file" > /dev/null; then
|
||||
sed -i'.tmp' '/^SSH_COMPRESSION=*/a\'$'\n''RSYNC_REMOTE_PATH=\'$'\n''' "$config_file"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user