fix writing / resuming backup