snapperS
A set of subcommands to supplement snapper usage. Tested on Ubuntu 15.04 and 15.10 with snapper v0.2.4 and btrfs-progs v4.0 (bug reports welcome!).
usage: snapperS [-h] [-d DIRECTORY] [-v] {cat,backup,restore,rm,list} ...
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:
Restore a snapshot from a file generated with snapperS backup.
A more comprehensive version of snapper list that includes information on space usage.
Backup a specified snapshot to a file via btrfs send.
Delete a specified file from either a range of snapshots or from all snapshots.
Read a specified file from a specified snapshot.
{cat,backup,restore,rm,list}
Subcommands
snapperS cat
usage: snapperS cat [-h] -f ~/file.txt -s SNAPSHOT
Read a specified file from a specified snapshot.
optional arguments:
-h, --help show this help message and exit
-f ~/file.txt, --filename ~/file.txt
The file to cat
-s SNAPSHOT, --snapshot SNAPSHOT
The snapshot to view
snapperS rm
usage: snapperS rm [-h] -f ~/largeFile.img [-r 1..42] [--recursive]
Delete a specified file from either a range of snapshots or from all
snapshots.
optional arguments:
-h, --help show this help message and exit
-f ~/largeFile.img, --filename ~/largeFile.img
Delete a file from all past snapshots.
-r 1..42, --range 1..42
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 ~/BTRFS_Backup.send -s 42
Backup a specified snapshot to a file via btrfs send. It is recommended to compress this file.
-In order to restore this file, run `cat backup | btrfs receive /mnt/subvol`
-If you want to sync your backups to another BTRFS filesystem, ButterSink is better suited for that purpose.
optional arguments:
-h, --help show this help message and exit
-b ~/BTRFS_Backup.send, --backup ~/BTRFS_Backup.send
The location to store the backup
-s 42, --snapshot 42 The number of the snapshot you want to backup
snapperS restore
usage: snapperS restore [-h] -b ~/BTRFS_Backup.send -r ~/newRestoredSubvolume/
Restore a snapshot from a file generated with snapperS backup.
optional arguments:
-h, --help show this help message and exit
-b ~/BTRFS_Backup.send, --backup ~/BTRFS_Backup.send
The location of the backup.
-r ~/newRestoredSubvolume/, --restoreLocation ~/newRestoredSubvolume/
The path to where you want to restore the backup.
snapperS list
usage: snapperS list [-h] A more comprehensive version of snapper list that includes information on space usage. optional arguments: -h, --help show this help message and exit
Installation
pip install snapperS
or
git clone https://github.com/ddworken/snapperS.git cd snapperS python setup.py install
Source
Source is available on at github.com/ddworken/snapperS
Metadata
Release files for snapperS 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snapperS-1.1.8.tar.gz | 12.9 kB | Without provenance | Details for snapperS-1.1.8.tar.gz |
Release files / snapperS-1.1.8.tar.gz
| Download URL | snapperS-1.1.8.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
031b878ac78d1afc54cc84f153acfd4f7b7cf583e5451900fb6d443bb3f27e2d
|
|
BLAKE2b-256 checksum How to use checksums |
8f9624c82ef8988b2af95ac5b458e5cfad819c5ae948cec9960287f67dd95349
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for snapperS 1.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.