|
NAMEclonedd -- Tool for clone HDD on FreeBSDSYNOPSISclonehdd -src=device -dst=device -swap=size [-safe] [-freespace=size] [-fstab=device] [-force]DESCRIPTIONTool for copy partitions to another HDD. FreeBSD stores its data on partitions, which incapsulated in slices. Soft, such as Partition Magic, Acronis, etc. detect only slice, not real partitions on that slice. CloneHDD correctly understand size diference between two HDD and change size of each partition proportionally for filling entire HDD.OPTIONS
DETAILSFirst, CloneHDD checks if SRC and DST devices are present in system, if you have enough free space. After theese checks, it drops all data on DST HDD with dd(1), make filesystem with fdisk(8), bsdlabel(8) and newfs(8). Then, CloneHDD mount each partition to /mnt/clone and copy data. All data on SRC HDD will be untouched. Then CloneHDD modify /etc/fstab file on /dev/DST HDD and set device names to value in -fstab parameter. On DST HDD, root partition will be created file "backup-mode". WARNING! All partitions on SRC HDD that you wish to clone must be mounted. If you wish not to clone some partitions, unmount them.USING BACKUP HDDIf something wrong with your SRC HDD in future, you can take out corrupted SRC HDD and put reserve DST HDD on that place. Note, that you must set correct value to -fstab parameter to boot FreeBSD correctly. If you forget to turn off starting CloneHDD from crontab, script will not run, because there is a file "/backup-mode" in root folder of filesystem on cloned partition. Remove this file if you want to clone such HDD as SRC partition.CRONTABTool works fine from crontab(1). Put lineclonehdd [parameters] -force >/dev/null to /etc/crontab. All error messages will be sent to STDERR and you receive mail from cron daemon with this information. All normal messages will be sent to STDOUT and then dropped on /dev/null device. RETURN VALUESIf CloneHDD failed to do something, it will exit with exit code 1. Otherwise, exit code will be zero. In version 2.0.2, CloneHDD does not control if error occured in dump(8), restore(8) and rest external commands.EXAMPLES
SEE ALSOdump(8), restore(8), crontab(1)AUTHORAnton Lysenok, bart@tapolsky.net.uahttps://sourceforge.net/projects/clonehdd/
Visit the GSP FreeBSD Man Page Interface. |