| |
 |
|
Scheduling backup tasks in Carbon Copy Cloner |
| |
[CCC Help] [Browse Help Topics]
Carbon Copy Cloner offers hourly, daily, weekly, and monthly scheduling. If your workstyle is too hectic for scheduling, you can also schedule a task to run whenever your backup hard drive is attached to your computer. To schedule a backup task, first configure CCC as if you were going to run a backup task immediately. Instead of clicking on the Clone button, click on the "Save Task" button. In the Scheduler window that appears, provide a name for the scheduled task (double-click "Untitled") and indicate when you want the task to run.

Scheduling a task
To schedule a task, choose the desired repetition interval from the popup menu next to "Run this task:". If you would rather have the backup task run only when the target volume is reattached to your computer, choose "When target is reconnected".

Next choose how many (hours, days, weeks, or months) you would like to skip between backup events ("Repeat every:"). Finally, indicate the time of day at which you would like the event to start. When scheduling a task to run on a weekly basis, you may also indicate what days of the week on which your task should run. At the bottom of the scheduler window, CCC will indicate how frequently the task will run and when it is next scheduled to run.
Additional Settings
By default, CCC uses the name and Universally Unique Identifier (UUID) of your source and target to identify those volumes. By verifying both of these identifiers, there is less risk in, for example, backing up to a volume that has the same name as your usual target but is not actually the target. While beneficial, this behavior can sometimes have the wrong result. For example, if you rotate between a pair of firewire hard drives, even though they have the same name (e.g. "Offsite Backup"), CCC will not, by default, backup to both of them, it will claim that the UUID of one of the drives does not match that of the originally chosen target.
The deal with this scenario, CCC allows you to disable verification of the target drive's UUID. When deselecting this option, be vigilant that you do not rename your target hard drive and that you never attach a hard drive to your machine that is named the same as your target hard drive.

In addition to disabling the UUID verification, CCC will also allow you to disable verification of the target volume's name. Obviously, both of these options may not be disabled at the same time (CCC won't let you do that), but in cases where you may want to rename your target hard drive, this option will allow you to do so without breaking your scheduled backup task.
If your target hard drive is an iPod, CCC will provide an additional option in the Settings tab: "Wait for iPod:iTunes sync to complete before copying data". When you bought your iPod, you probably did so with the intention of using it to enjoy your music collection. To this end, Carbon Copy Cloner recognizes that the primary purpose of an iPod is for music, and respects the synchronization period that occurs when you connect your iPod to your Mac. This option is enabled by default.
Waiting for iPod:iTunes synchronization
In some instances, it may appear that iPod:iTunes synchronization has started, yet CCC begins the backup task anyway. CCC determines whether the synchronization is occurring based on whether the synchronization background tool is running, not what is described in the iTunes interface. Before iTunes actually starts the synchronization, it determines when it last synced your iPod and then prepares data to be copied to your iPod (calendars, music, contacts, etc.). Depending on how much data it has to prepare to send to your iPod and how fast your computer is, iTunes may take more than a minute preparing to copy data to your iPod. If iPod:iTunes synchronization hasn't started in one minute, CCC proceeds with the backup task anyway. This time interval is not configurable, but seemed like an adequate middle ground between waiting too long for a sync task that may have been cancelled anyway and not waiting long enough for an iPod long overdue for a sync. If CCC starts a backup task before iPod:iTunes synchronization has completed, you may, if desired, click CCC's Stop button and defer the task to a later time.
The Description tab indicates the name that you have provided for your backup task as well as a description of the task. CCC populates this description with the one provided in the main interface, but you may modify this description to suit your needs.
Managing and monitoring scheduled tasks
Scheduled task settings may be modified at any time. You can also temporarily disable a scheduled task by unchecking the box next to its name in the "Scheduled Tasks" list. To delete a task altogether, simply select the task in the "Scheduled Tasks" list and click the "-" button or press the delete key. If the task is running when you save modified settings or delete the task, the scheduled task itself will prompt for verification that you intend to end the running task. Choosing to not end the running task will not prevent the settings from being saved, but it will prevent the settings from taking effect. The new settings will take effect the next time you restart your computer or when you modify another setting and re-save them.
If you would like to run a scheduled task immediately, select the task in the "Scheduled Tasks" list and click on the Run button.
In addition to feedback provided in the interface, CCC records some information about your scheduled task in a log file. While the contents of this log file are generally intended for communication of problems to the developer, end users may find some of the information in this log helpful. CCC's log file is located at /Library/Logs/CCC.log. You can view the contents of this log by selecting "CCC Log" from CCC's Window menu.
Learn more about the CCC log file
Deferring and skipping scheduled tasks
Occasionally, a scheduled task will run at the most inconvenient time. Perhaps you are under deadline and don't have the patience for the hard drive performance hit of a system-wide backup. Or perhaps you are just about to pack up and hit the road. If you ever find the need to cancel a scheduled task at a particular time, CCC gives you two options for maintaining your backup regimen: 1) skip this particular scheduled run time or 2) defer this scheduled task to a specific time in the future.
When you skip a task, CCC will run the backup at the next scheduled interval. Deferring gives you more flexibility. Suppose that all you need are another twenty minutes to finish a project. Click defer and wind the clock forward twenty minutes -- CCC will run the task again then. Or suppose you realize that you forgot to bring your backup drive to work with you today and you have a scheduled task that runs every other hour. Rather than getting reminded of this four times, simply defer the backup to tomorrow.
Additionally, CCC offers you the option of permanently rescheduling a backup task. If, after a week or so, you realize that the originally scheduled time is really just too inconvenient, you can modify the start time in the defer panel by checking the box to "Reschedule all future events for this time of day". For more significant modifications to your backup scheduled, launch CCC and choose "Scheduled Tasks" from the Carbon Copy Cloner menu to edit your task.
What if ...?
What happens if no one is logged in when the scheduled task runs?
The scheduled task will run whether someone is logged in to the machine or not. If no one is logged in to the machine, CCC will run in the background without a user interface. CCC logs information to /Library/Logs/CCC.log, you can use that log file to monitor CCC progress (e.g. logged in remotely via SSH).
How is system sleep handled?
If a backup task is scheduled to run while your computer is sleeping, CCC will run that task immediately upon wake (CCC waits 10 seconds to allow your machine to establish network connectivity and spin up hard drives).
What if the backup drive is not available when the scheduled task runs?
If your backup hard drive is unavailable when the task is scheduled to occur (perhaps you're listening to tunes on your iPod at the time), CCC will report an error that the drive is not available and ask you to skip or defer the task. If you choose to skip the task, CCC will immediately run the backup when you reattach your hard drive. If you do not attach the hard drive to your computer before the next scheduled run time, CCC will prompt you again that the hard drive is missing.
How do scheduled tasks "work"
Carbon Copy Cloner Scheduled tasks are managed by launchd. Each scheduled task exists in the form of a property list file stored in /Library/LaunchDaemons. When these LaunchDaemons are loaded, an instance of "ccc_helper.app" is launched and configured with the scheduled task settings.