Copy files from a source directory to a destination directory and keep track of the last copied file's timestamp. Next run, only copy new files.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
cpnewfiles.py

README.md

cpnewfiles

Copy files from a source directory to a destination directory and keep track of the last copied file's timestamp. Next run, only copy new files.

Delete copied files but keep around an hour by default. This is configurable via the --hours and --minutes command line options.

Example usage:

cpnewfiles.py --hours=2 --minutes=30 /some/source/dir /some/dest/dir

This script is licensed under the PostgreSQL License. See the LICENSE file for details.