fs2f
Description
The fs2f script is for taking snapshots of a file structure into a single file, similar to archiving without compression.
Features
- Create a snapshot file from a specified directory.
- Restore the file structure from a snapshot file to a chosen directory.
- Preserve information about the owner and access rights on UNIX-like systems.
- List the files and directories stored in the snapshot file.
- Verify file integrity using hash checks.
- Strict mode aborts recovery in the event of a hash error.
Installation
-
from GitHub
git clone https://github.com/codyverse/fs2f.git cd fs2f
-
via PIP
pip install fs2f
Usage
Options:
-h, --help Show this help message and exit.
-m Create a file structure snapshot and save it to a file.
-u Restore a file structure snapshot from a file.
-s Disable strict mode (continue restoring despite file hash mismatches).
-l snapshot_file List files and directories stored in a file structure snapshot.
-d directory Path to the directory.
-f snapshot_file Path to the snapshot file.
Examples
-
Snapshot the entire file structure inside the
./folder/adirectory to thefile.fsfile:python3 fs2f.py -m -d ./folder/a -f file.fs
-
Restore the file structure from the
file.fsfile to the./folder/bdirectory:python3 fs2f.py -u -d ./folder/b -f file.fs
-
Display all files and directories saved within the
file.fsfile:python3 fs2f.py -l file.fs
Contributing
Feel free to contribute by submitting issues or pull requests!
Metadata
Release files for fs2f 0.0.1.241223
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 |
|---|---|---|---|---|
| fs2f-0.0.1.241223.tar.gz | 6.6 kB | Without provenance | Details for fs2f-0.0.1.241223.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fs2f-0.0.1.241223-py3-none-any.whl | Python 3 | none | any | Details for fs2f-0.0.1.241223-py3-none-any.whl |
Total release size: 12.0 kB
Release files / fs2f-0.0.1.241223.tar.gz
| Download URL | fs2f-0.0.1.241223.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85e1935261d851bafd3360b161486c7e5b3040a6e9d62bd906c67365905b0125
|
|
BLAKE2b-256 checksum How to use checksums |
429626d75ee4e148ae7d06331cc07ea9de6ed8a8128b88dae7d59aaa7bd95d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / fs2f-0.0.1.241223-py3-none-any.whl
| Download URL | fs2f-0.0.1.241223-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
882bd5889cf34c7376fc0774ff5b61bb4a30e67ad6a3ea69e12bbaacbe69404e
|
|
BLAKE2b-256 checksum How to use checksums |
ee3807fbe696ba4d5b9106b40528c7355cab8fd6b0da6211fea57850ec3a4557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for fs2f 0.0.1.241223
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.