Skip to main content

save, restore, diff files by version.

Project description

Save, Restore, Diff versions of files

Easily save and restore files while preserving the access and modification times of the original file.

Installation

python3 setup.py install

Version save

vsav file ...

Saves each file by making a copy. The saved filename is file.v.nnn where nnn is the highest version number found plus one.

Version numbers consist of 3 decimal digits with leading zeros if necessary. The initial version number is 000.

The saved file retains the access and modification times of the original file.

Use vres to restore saved files.

Version restore

vres file ...

Restores each file from the indicated version. If file has the form dest.v.nnn where nnn is a version number, then the file is restored from this version. Otherwise, the file is restored from its highest version.

Version numbers consist of 3 decimal digits with leading zeros if necessary.

The source file was presumably created using vsav. The destination file retains the access and modification times of the source file.

Version Diff

vdif file [diff-options] ...

Compares a previous version to the current version of the file using diff. Arguments after file are passed to diff.

If file has the form dest.v.nnn where nnn is a version number, then this version is compared to the current version:

diff [diff-options] ... dest.v.nnn dest

otherwise the highest version is compared to the current version:

diff [diff-options] ... file.v.nnn file

where nnn is the highest version number.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vsav-2.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page