1

How can I copy files from dying HDD and also create a log file which will include the status of given file (if it was successfully copied or not?). My goal is to run the backup tool without user interaction and then check log. I'm aware of tools such as dd and ddrescue but this is not what I want because those tools require free HDD which I do not have at the moment. I have enough space on another HDD but I cannot format it. I know that dd, ddrescue can clone the disk into the file but this file needs to be mounted and further processed which is further work.

  • If you want to log anything script is your friend. – Hennes Jan 10 '16 at 0:39
  • so if I will run cp under script and cp wont be able to read broken file will copy process continue? – Wakan Tanka Jan 10 '16 at 0:41
  • Script will not change anything except logging the output. – Hennes Jan 10 '16 at 0:53
  • so question is if cp will continue? – Wakan Tanka Jan 10 '16 at 0:56
  • Aye. Which means you might want to consider something other than cp. IO would suggest dd rescue but you already seem to have discounted that due to lack of space. – Hennes Jan 10 '16 at 1:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.