A set of supplementary commands to be used with snapper
Project description
A set of subcommands to supplement snapper usage. Tested only on Ubuntu 15.10 (bug reports welcome!).
usage: snapperS [-h] [-d DIRECTORY] [-v] {cat,backup,delete} ... snapperS: A variety of supplemental snapper subcommands optional arguments: -h, --help show this help message and exit -d DIRECTORY, --directory DIRECTORY Directory containing the snapshots -v, --verbose Enable verbose logging. If you are experiencing difficulties with this program, try with -v for debugging. subcommands: cat to run cat on a file from a specific snapshot. delete to delete files from either all snapshots or a range of snapshots. backup to backup a snapshot to a file via the btrfs send command. {cat,backup,delete}
Subcommands
snapperS cat
usage: snapperS cat [-h] -f FILENAME -s SNAPSHOT optional arguments: -h, --help show this help message and exit -f FILENAME, --filename FILENAME The file to cat -s SNAPSHOT, --snapshot SNAPSHOT The snapshot to view
snapperS delete
usage: snapperS delete [-h] -f FILENAME [-r RANGE] [--recursive] optional arguments: -h, --help show this help message and exit -f FILENAME, --filename FILENAME Delete a file from all past snapshots. -r RANGE, --range RANGE The range of snapshots to delete the file from in the form of startPoint..endPoint (e.g. 2..5) --recursive Delete recursively (i.e. a folder)
snapperS backup
usage: snapperS backup [-h] [-b BACKUP] [-s SNAPSHOT] optional arguments: -h, --help show this help message and exit -b BACKUP, --backup BACKUP The location to store the backup -s SNAPSHOT, --snapshot SNAPSHOT The number of the snapshot you want to backup
Installation
pip install snapperS
or
git clone https://github.com/ddworken/snapperS.git cd snapperS python setup.py install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
snapperS-0.3.0.tar.gz
(8.5 kB
view hashes)