Sorry, I made a mistake. The *.tmp-file is created by compacting the database, not the backup.