This little shell script logs a message in a text file at a specified location when Carbon Copy Cloner has successfully made a backup. This script can be useful for keeping a log of recent backup runs in a location close to the backup files.
Example use case:
Say you want to make a backup to /Volumes/Backup Drive/Backup of my MacBook
.
This script will create a file called /Volumes/Backup Drive/Backup of my MacBook.txt
and log the recent successful backup runs to this text file.
This way, one can easily inspect when the last backups were made, directly from the backup volume itself, without needing access to the computer from which the backup task was run.
In Carbon Copy Cloner:
- Select a task
- Click ‘Advanced Settings’
- Move to the tab ‘Postflight’
- Choose the script under 'Run a Shell Script'
The script has been tested with Carbon Copy Cloner 6. Compatibility with older or newer versions is not guaranteed. The script is tailored to my specific needs, but can serve as inspiration for comparable logging tasks.