backup_sql: enable specification of port and tmpdir