To copy key configuration files and data files to CD-R, use the example backup script backup. Also see Copy and archive a whole subdirectory, Section 8.3 and Differential backup and data synchronization, Section 8.4.
backup