fs2f: A tool for taking snapshots of a file structure into a single file.
Project description
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!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fs2f-0.0.1.241223.tar.gz.
File metadata
- Download URL: fs2f-0.0.1.241223.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e1935261d851bafd3360b161486c7e5b3040a6e9d62bd906c67365905b0125
|
|
| MD5 |
44774731e6cf2a68be03f78fe543aeb7
|
|
| BLAKE2b-256 |
429626d75ee4e148ae7d06331cc07ea9de6ed8a8128b88dae7d59aaa7bd95d9b
|
File details
Details for the file fs2f-0.0.1.241223-py3-none-any.whl.
File metadata
- Download URL: fs2f-0.0.1.241223-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
882bd5889cf34c7376fc0774ff5b61bb4a30e67ad6a3ea69e12bbaacbe69404e
|
|
| MD5 |
1a7163580f1c86c3bbd6d2e8e56c4168
|
|
| BLAKE2b-256 |
ee3807fbe696ba4d5b9106b40528c7355cab8fd6b0da6211fea57850ec3a4557
|