Skip to main content

Assume data flushed to backup device when post-backup commands are run?

Thread needs solution

Windows 7 Pro SP1 64-bit and Windows 10 Pro 64-bit

I use rather complicated pre- and post-backup commands to mount and unmount the backup device, mainly to avoid any chance of accidentally overwriting the backup files during normal use.

But I just built a little Arduino-based network-controlled power switch which would allow me to turn the drives on and off as needed during the backup sequence.

Is it safe to assume that the backup data has been flushed to the device at post-backup command time, or do I need to flush the disk as part of the post-backup command file?

0 Users found this helpful

Bert, as far as I understand, any cached data being written to your drive should have already been cleared when your post backup script runs.

If you are using such as Powershell, then you could use the following cmdlet to flush the data so as to be absolutely sure.

The Write-VolumeCache cmdlet writes the file system cache to disk. By default, Windows caches file data to be written to disk in a special memory area before writing the data to disk.

Thanks. I ran the backups last night simply doing a sync and then powering down the drives and shutting the machines down. The backups on both machines passed validation, so it looks like that scheme will work.

I've been using the "sync" program from sysinternals for a long time and it's still part of the post-backup script.

https://docs.microsoft.com/en-us/sysinternals/downloads/sync