Copy temp file and fsync

Waiting for CI, will update tomorrow