DragonFly commits List (threaded) for 2006-07
cvs commit: src/bin/cpdup cpdup.1 cpdup.c
dillon 2006/07/03 17:32:03 PDT
DragonFly src repository
bin/cpdup cpdup.1 cpdup.c
Add a new option -H <path> to cpdup. This option allows cpdup to be used
to create incremental backups.
cpdup operates per normal. However, if the -H option is specified with a
path to some prior (read-only) backup of the source tree, cpdup will
check whether the file in the source tree matches ethe file in the
prior backup and if it does it will create a hardlink from the prior backup
to the target tree instead of copying the file.
Warning: due to the way cpdup handles hardlinks, it must record the file
paths for all hardlinks it encounters while it is traversing the directory
tree. If copying a very large tree with lots (e.g. millions) of files it
is possible to run the process out of memory.
Revision Changes Path
1.11 +34 -1 src/bin/cpdup/cpdup.1
1.11 +104 -11 src/bin/cpdup/cpdup.c