Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mac2013orlater

macrumors member
Original poster
Feb 2, 2014
98
2
Time Machine backup destination on SMB network share (within a sparse bundle on that share).
Actually how is the Verify Backup operation (mac's System Preferences > Time Machine > backup destination contextual menu + option key depressed > Verify Backup) implemented ?

Is this something like this ?
Code:
sudo hdiutil attach ...
followed by
Code:
sudo fsck_hfs ....
followed by
Code:
sudo hdiutil detach ....
Any other fashion?

Maybe just and only:
Code:
hdiutil verify ....
Neee, last one can't actually be as images with write access do not seem to include checksums used by hdiutil verify .... - according to hdiutil man page.

We plan to implement a replica of Verify Backup in shell script however lack information how reproduce it in shell script language. Is it possible to use mac's console to see lower-level operations resulting from choosing Verify Backup option? What to search for there?
 
Last edited:
What are you exactly trying to achieve? Remote Time Machine destinations are verified periodically automatically.
 
The goal is to have got the process of Time Machine backup increment production automated as far as possible. Currently it is carried out manually in all its steps: connect to network share, verify backup, start backup increment production, wait up till complete, verify again.

Time Machine here is in off state long haul. Increments are always started manually.
 
Following log output is produced in
Code:
/var/log/fsck_hfs.log
in the time of execution and completion of Verify Backup from System Preferences > Time Machine > back destination context menu + option key depressed > Verify Backup:
Screen Shot 2017-10-09 at 00.13.14.jpg


Unfortunately exact arguments passed to fsck_hfs unclear, one might be QUICKCHECK-ONLY or so.

Backup increment generation (System Preferences > Time Machine > back destination context menu > Backup to "xxxx" now) is accompanied by fsck_hfs run too:
Screen Shot 2017-10-09 at 00.17.03.jpg


How to figure out more details about background process of manually triggered backup verification?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.