Showing results in 'Blog'. Show all posts

Tip: Ditto

Ditto is a utility that comes with Mac OS X, which copies entire directories from one place to another. When automated via shell script, ditto can form a very very basic backup tool.

Create the ditto command.

For example, "ditto /Users/jasonrw/Documents/ /Volumes/USBHDD/ditto/"

Test out the command and make sure it performs as expected. Place the syntax into a plain text file, preceeded by a #!/bin/bash and followed by an "exit" statement.


ditto /Users/jasonrw/Documents/ /Volumes/USBHDD/ditto/