Sync scratch file