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 details)

Uploaded Source

File details

Details for the file vsav-2.0.1.tar.gz.

File metadata

  • Download URL: vsav-2.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for vsav-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7b85157e223cd9e8797861bf551db1c901cee87d3dec2dc30b8a2bc8c097808e
MD5 a6d21ae495d89ac6f13ba437f550437a
BLAKE2b-256 1ad45f8d3af5e9399c902203c18e34c20f8c05a9103041bb1daa3e16968cafd4

See more details on using hashes here.

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