backup: configurable cleanup sequence

$delete_before_dump controls whether old backups to be removed before
creating new one.