Commit log archive configuration
DataStax Enterprise provides commit log archiving and point-in-time recovery.
The commit log is archived at node startup and when a commit log is written to disk, or at a specified point-in-time.
You configure this feature in the
commitlog_archiving.properties configuration file.
The commands archive_command and restore_command expect only a single command with arguments. The parameters must be entered verbatim. STDOUT and STDIN or multiple commands cannot be executed. To workaround, you can script multiple commands and add a pointer to this file. To disable a command, leave it blank.
Archive a commit log segment:
Fully qualified path of the segment to archive.
Name of the commit log.
archive_command=/bin/ln %path /backup/%name
Restore an archived commit log:
Fully qualified path of the archived commitlog segment from the <restore_directorie>s.
Name of live commit log directory.
restore_command=cp -f %from %to
Set the restore directory location:
Restore mutations created up to and including the specified timestamp:
<timestamp> (YYYY:MM:DD HH:MM:SS)
Restore stops when the first client-supplied timestamp is greater than the restore point timestamp. Because the order in which the database receives mutations does not strictly follow the timestamp order, this can leave some mutations unrecovered.