Skip to main content

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.

Metadata

Release files for vsav 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vsav 2.0.1
File Size Uploaded
vsav-2.0.1.tar.gz 3.4 kB Details

Release files / vsav-2.0.1.tar.gz

Download URL vsav-2.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7b85157e223cd9e8797861bf551db1c901cee87d3dec2dc30b8a2bc8c097808e
BLAKE2b-256 checksum
How to use checksums
1ad45f8d3af5e9399c902203c18e34c20f8c05a9103041bb1daa3e16968cafd4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.0.1 This release

1 release file

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page