Looking for the latest version? Download cpos-1.2.42.tar.bz2 (19.3 kB)
Name Modified Size Downloads / Week Status
Totals: 6 Items   29.8 kB 8
mageia 2015-01-20 11 weekly downloads
mandriva 2013-02-08 44 weekly downloads
cpos-1.2.42.tar.bz2 2015-01-20 19.3 kB 11 weekly downloads
RELEASE-NOTES 2011-10-01 311 Bytes 22 weekly downloads
README 2011-10-01 3.0 kB 22 weekly downloads
HOWTO.html 2010-11-10 7.2 kB 33 weekly downloads
The "cpos" script makes a bootable backup copy of the current "/" partition defined by the ROOT_MOUNT_POINT variable, or a tar file copy of the "/" partition, to a partition defined in the BACKUP_MOUNT_POINTS variable ( a comma delimited list of possible partitons to copy to ). For the purpose of this README, I use partition to mean the mount point for that partition as defined in /etc/fstab. Before the backup copy operation happens, the backup partition is formatted, so be careful to define the partitions properly in /etc/fstab, and /etc/cpos.conf, before doing anything else, and to read the documentation carefully. The purpose of this is to make a bootable identical copy of the current "/" directory ( let's call it "linux1" ) to a second partition ( let's call it "linux2" ), and all changes will be made to that partition to make it bootable. Therefore, an entry for this partition should be put into lilo or grub ( depending upon which you currently use as a boot manager ) that will cause that partition to properly boot. The BACKUP_MOUNT_POINTS variable can contain more than one backup partitions, in which case a dialog box is generated with a choice of the partition for the backup. The script copies the current "/" partition only. No mounted partitions are copied; and all directories defined by the STUBBED_DIRS variable are copied without any files within them. After the copy is made, and all services restarted, the script creates an initrd image file on the copied partition, "linux2", modifies the /etc/fstab file, makes some changes to the /etc/cpos.conf file on the copied partition, and reruns the boot manager to make the copied partition properly bootable ( depending upon the setting of the RUN_BOOTLOADER_AFTER_COMPLETION variable ). A DAEMON_DEPENDENCIES variable is defined that should contain the name of the services that must be stopped to unmount all partitions except the "/", and the "/tmp" directory.These services will be restarted after completion of the script, with the exception of those services defined that weren't running. A STOP_PROGRAM_LIST array is defined that should contain the name of any executable programs that aren't set up as a service (skype is one of these), that must be stopped to backup the system properly. the syntax is defined in the config file by example. A log file defined by the LASTBACKUP_LOG variable tracks the success or failure of the copy operation. If the -s option is chosen, all services defined in the DAEMON_DEPENDENCIES variable are stopped, but no format, or copy is performed. If the -r option is chosen, all services that were stopped after using the -s option are restarted, but no format, or copy is performed. If the -b option is chosen, the backup partition is formatted, and a tar file of the "/" partition is created. This is to allow a backup tar file to be generated that can be saved. If the -n option is chosen, the backup partition formatting will be bypassed, but the copy will be performed to that partition.
Source: README, updated 2011-10-01