archive-cp is a small utility intended to be used to copy files with the goal of not losing data, for archival purposes. If files would be the same name in the target directory, and they aren't duplicates, all of them are kept. Duplicates are identified, the oldest of each group of duplicates sharing a name and destdir is selected, of the remaining items, the newest gets the original filename, the others are timestamped to give them unique names.
The fclones
tool is required for duplicate file detection.
As the author, my original use of this project was to combine multiple mirrors of old ftp sites without losing old versions of old tools, since it's not always easy to identify which mirror is the most recent, which are complete or incomplete, and even if they're all complete, files got replaced or removed over time, so there's value in being able to merge them.
- TODO
- TODO
You can install Archive Cp via pip from PyPI:
$ pip install archive-cp
Please see the Command-line Reference for details.
Contributions are very welcome. To learn more, see the Contributor Guide.
Distributed under the terms of the MIT license, Archive Cp is free and open source software.
If you encounter any problems, please file an issue along with a detailed description.
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.