System Preferences > Time Machine > backup destination contextual menu > verify

Discussion in 'Mac Apps and Mac App Store' started by Mac2013orlater, Oct 7, 2017.

  1. Mac2013orlater, Oct 7, 2017
    Last edited: Oct 7, 2017

    Mac2013orlater macrumors member

    Joined:
    Feb 2, 2014
    #1
    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?
     
  2. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #2
    What are you exactly trying to achieve? Remote Time Machine destinations are verified periodically automatically.
     
  3. Mac2013orlater thread starter macrumors member

    Joined:
    Feb 2, 2014
    #3
    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.
     
  4. Mac2013orlater thread starter macrumors member

    Joined:
    Feb 2, 2014
    #4
    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?
     

Share This Page

3 October 7, 2017