Command-Line Interface to restrict the validity period of a NTFS dataset and purge out-of-date data.
As restrict-validity-period is not pushed to crates.io yet, you can install it by cloning transit_model.
git clone https://github.com/CanalTP/transit_model
cd transit_model
cargo install --path restrict-validity-period# One-day restriction
restrict-validity-period --input /path/to/ntfs/folder/ --output /path/to/ntfs/ --start-validity-date 2019-01-01 --end-validity-date 2019-01-01--inputis the path to a folder containing NTFS data format--outputis the path to a folder where the NTFS will be exported--start-validity-dateis the start of the desired validity period (included)--end-validity-dateis the end of the desired validity period (included)
Get more information about the available options with restrict-validity-period --help.
As NTFS is the pivot format for data processing, common NTFS rules is useful.