NAME
move-merge - merges directories into one target directory
SYNOPSIS
$ move-merge targetdir source-directories...
Merges all source-directories into the target directory, unifying their subdirectory structures. The final files are replaced with the same-named directories inside which the files are saved under the names of the source directories.
DESCRIPTION
The command move-merge merges a list of source diretories into the target directory, unifying their subdirectory structures. The final files are replaced with the same-named directories inside which the files are saved under the names of the source directories. This is particularly useful in merging together backup directories after backups saved with the rsync command. For example, let us assume that we are making regular backups of the directory /home/user into the directory /backup/user while saving the old and deleted files into the directory /backup/user-old/220203-105750, where 220203-105750 contains the time-stamped version of the old files in the same directory structure as the original backup. After collecting a number of such backups, we can run the command move-merge m 2* which will collect and merge all versions into the directory m.
AUTHOR
Vlado Keselj vlado@dnlp.ca http://vlado.ca
LICENSE
Perl License (perl)
SCRIPT CATEGORIES
CPAN Unix/System_administration
README
move-merge - merges directories into one target directory