2 ms·
> A back-up tool should open files to backup in a mode that disallows others from writing to it, and retry that a few times, each time after waiting a few secon
by justinclift 7y ago
> A back-up tool should open files to backup in a mode that disallows others from writing to it, and retry that a few times, each time after waiting a few seconds.
Generally the preferred approach for backup programs is to trigger a file system snapshot - after quiescing the disks - and back that up. Sometimes (eg databases), the backup program is able to run application specific logic that works in with this (eg flush all database buffers before the snapshot).
For the filesystems that don't offer snapshots, some still have the ability to freeze the file system to allow a consistent backup.