Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Backup data to CD via the command line
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="gatorparrots" data-source="post: 182"><p>Here is how to create a 100MB drive image, backup data to it, and then burn it onto a CD (directly in the commandline, with only the built-in tools). <em>One possible application: This could be easily modified and incorporated into a script that will backup your Entourage mail databases every week, good for up to six uses (6x100MB) depending on the size of your mail data...</em></p><p></p><p><span style="color: blue">hdiutil create -fs HFS+ -volname Backup -size 100m ~/Desktop/backup.dmg</span></p><p><span style="color: blue">hdiutil mount ~/Desktop/backup.dmg</span></p><p><span style="color: blue">ditto -rsrc -V ~/Desktop/datatobackup /Volumes/Backup >> /Volumes/Backup/backup.log</span></p><p><span style="color: blue">hdiutil unmount /Volumes/Backup</span></p><p><span style="color: blue">hdiutil burn ~/Desktop/backup.dmg -noverifyburn -noeject</span></p><p></p><p>It will prompt you for a disc, insert one and it will burn your disc:[code]</p><p>Please insert a disc: </p><p>Starting</p><p>Initializing</p><p>Saving temporary image</p><p>Opening session</p><p>Writing track</p><p>............................................................................</p><p>Finishing writing</p><p>............................................................................[/code]</p></blockquote><p></p>
[QUOTE="gatorparrots, post: 182"] Here is how to create a 100MB drive image, backup data to it, and then burn it onto a CD (directly in the commandline, with only the built-in tools). [i]One possible application: This could be easily modified and incorporated into a script that will backup your Entourage mail databases every week, good for up to six uses (6x100MB) depending on the size of your mail data...[/i] [color=blue]hdiutil create -fs HFS+ -volname Backup -size 100m ~/Desktop/backup.dmg hdiutil mount ~/Desktop/backup.dmg ditto -rsrc -V ~/Desktop/datatobackup /Volumes/Backup >> /Volumes/Backup/backup.log hdiutil unmount /Volumes/Backup hdiutil burn ~/Desktop/backup.dmg -noverifyburn -noeject[/color] It will prompt you for a disc, insert one and it will burn your disc:[code] Please insert a disc: Starting Initializing Saving temporary image Opening session Writing track ............................................................................ Finishing writing ............................................................................[/code] [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Backup data to CD via the command line
Top