Remove unique files from destination, and a few other issues
tgrolier1992 via Dar-support <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <jg6pdkRX8i7kels1ai2l2Kaz2FAhwgihFguNoYiyjkmg6BBOblqyMSnhzuS4qMLAjdt84XZ_Om7Xafl3knHAfuXDLFhwhOpobYED58EPF6Y=@protonmail.com> |
Hi, I recently installed dar under Ubuntu Server 20 and was trying to image an NTFS Windows 10 HDD with it. I mounted the drive under Ubuntu and ran dar to create a full backup of the disk. On some files, I get an I/O error saying certain items in '/win10hdd/Program Files/WindowsApps/Microsoft.OneConnect_1.1607.0_x64__8wekyb3d8bbwe/', like 'clrcompression.dll' The disk has no bad sectors, and chkdsk under Windows says it's fine. I can view the files just fine under Windows, but not Ubuntu. Oddly enough, on things like 'OneConnect.exe' (also in that directory mentioned above), the full dar backup I made says it copied the symlink just fine. Doing cat OneConnect.exe gives "file not found", but under Windows it's fully usable and looks like a regular file. The full dar backup I made exited with code 5. With that being said, is the dar image still good for restoring? I would like to note that every file dar could not copy, I do not need anyway, I am only keeping them so Windows does not break. Moving on to the other question I have, as a test, I renamed some files on the Windows 10 HDD and also deleted some, made new directories (one empty and one full with a new file), and made a new file in the Windows folder. I tried restoring the full dar image made earlier to the drive to see what would happen, and it appears that every file was overwritten. Is it necessary for dar to overwrite unchanged files? This takes a very long time to do and would quickly wear out an SSD. Or, am I wrong, and dar is really hashing the files on the disk and comparing them with the ones in the image, to see what needs to be restored and what can be skipped? (I prefer this option) Additionally, I noticed the new files and directories I had created were not removed from the destination after the image was restored. I looked all over the man pages, tutorial, mini-howto and could not figure out how to do this. Does dar allow this to work? The only other alternative I have thought to this, that I have not done, would be to remove _all_ files from the HDD and then restore the full image back, which again would be stressful on an SSD. This is my first time using dar, so I apologize if some of these questions are cluttered or noob-sounding. Thank you, Thomas _______________________________________________ Dar-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dar-support