SQL.ExecNonQuery("BACKUP TO " & BackupPath)
I tried online backup API using .backup but it doesn't work.
I searched for jdbc method and the above command works even the database is in used.
This method doesn't vacuum the database.
I think RESTORE FROM should also work.