advertisement

Article:
  Automated Backups with Existing Tools
Subject:   srcfolder
Date:   2004-02-11 11:41:45
From:   chneeb
If you use the -srcfolder or -srcdir option of hdiutil, you don't need to calculate the size, mount the image, copy the $SOURCE and umount the image. hdiutil can does everything for you. I only tried this with directories not with whole partitions.


Christian

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • srcfolder
    2004-02-12 09:20:44  franiglesias [Reply | View]

    Sorry. I've reading man hdiutil (Mac OS X 10.2) but didn't find anything about -scrfolder. Is it a Panther-only feature?
    • srcfolder
      2004-02-12 13:03:17  peterhickman [Reply | View]

      The -srcfolder flag is available under the create option.

      "-srcfolder directory specifies the image size based on the contents of directory. -srcfolder also specifies that the contents of directory should populate the resulting image. -srcfolder copies file by file, creating an optimized filesystem on the destination image (which then could be restored by asr(8)). -srcdir is a synonym for -srcfolder."

      This is under panther, not sure about jaguar.

  • srcfolder
    2004-02-11 13:14:47  peterhickman [Reply | View]

    Interesting. All the disks are just folders off /Volume so perhaps this would work also. I will have to fiddle with things once I get some free time.

    Thanks for that.