command Provider Configuration [command]
Executes custom backup commands.
[command]
command = “” (no default)
The command to execute for backing up data. You can inject the Holland backup data directory path by using the {backup_data_dir} placeholder within the command. The placeholder will be replaced with the actual backup directory path at runtime. Using the placeholder in your command is not required. The backup will fail if the command exits with a non-zero status. Additionally, if you are using the before-backup-command, after-backup-command, or failed-backup-command options in your holland:backup section, the backup will also fail if those commands exit with a non-zero status as well.
Examples:
command = "rsync -av /var/lib/mysql/ {backup_data_dir}/" command = "tar -czf {backup_data_dir}/backup.tar.gz /var/lib/mysql" command = "cp -r /var/lib/mysql {backup_data_dir}/"
create-backup-data-dir = yes | no (default: no)
Whether to create the “backup_data” subdirectory inside the backup directory. If you are using the {backup_data_dir} placeholder in your command, some commands may or may not automatically create this directory. This option is available as a convenience to ensure the directory exists before executing the command.