5.9.2. Automating Backups
Backups cannot be automated within Tungsten Clustering, instead a
cron job should be used to automate the backup process.
cluster_backup is packaged with Tungsten Clustering to
provide a convenient interface with cron. The
cron entry should be added to every datasource or
active witness in the cluster. The command includes logic to ensure that
it will only take one backup per cluster by only running on the current
coordinator. See Section 8.7, “The cluster_backup Command”
for more information.
/opt/continuent/tungsten/cluster-home/bin/cluster_backup -v > »
The command output will be stored in
for later review. Use your preferred mechanism to configure
cron to execute this command on the desired schedule.
Alternatively, you can call the backup command directly through
cctrl. This method does not ensure the named datasource
ONLINE or even available to be
echo "datasource host2 backup" | /opt/continuent/tungsten/tungsten-manager/bin/cctrl -expert