How Overwrite option in restore works
Hi,
Just want to know how overwrite option in backup technologies works during the restore.
In my scenario I have restored the full backup (which has file named A, B, C, D) later I restored incremental backup with overwrite option enabled, on the same folder to where I restored the full backup. I know very well incremental backed up A, B, C as it was modified after the full backup. So incremental backup will definitely replace the A, B, C. Here I want to know whether D will get overwritten or not, though i restore incremental it also take full backup to restore first then followed by incremental, in this case D will get overwritten(though i have enabled overwrite option.) or will be skipped ?
Let's try one more time. The behaviour will depend on what backup sets are included in your restore session.
If the backup sets used for the restore does not include the full backup and only the incrementals, then selecting the folder that contains the four files (A,B,C&D) will not restore file D (as that was only included in the full backup). In the GUI that is controlled by changing the start and end date/time when searching for files to recover. In fact if you change the time frame to exclude the full backup file D will not be available to select.
When you initiate the restore from the GUI, what happens then is sequentially, starting from the oldest backup, the required file(s) from each backup to cover your selection will be restored. Each file selected will be restored once only (from all available backups covered by the session) from the latest backup available of that file (unless of course you specify a specific version when selecting the files).
Cheers
Davidfor the first part..No is the answer
for second part, by default, restore window select the latest Full backups and subsequent Incr backup images for the data and present it you in the window. you can either go with this default selection and restore with overwrite option , it will restore all the latest version of data, starting from the full image.