Skip to main content

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/a directory to the file.fs file:

    python3 fs2f.py -m -d ./folder/a -f file.fs
    
  • Restore the file structure from the file.fs file to the ./folder/b directory:

    python3 fs2f.py -u -d ./folder/b -f file.fs
    
  • Display all files and directories saved within the file.fs file:

    python3 fs2f.py -l file.fs
    

Contributing

Feel free to contribute by submitting issues or pull requests!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fs2f-0.0.1.241223.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fs2f-0.0.1.241223-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for fs2f-0.0.1.241223.tar.gz
Algorithm Hash digest
SHA256 85e1935261d851bafd3360b161486c7e5b3040a6e9d62bd906c67365905b0125
MD5 44774731e6cf2a68be03f78fe543aeb7
BLAKE2b-256 429626d75ee4e148ae7d06331cc07ea9de6ed8a8128b88dae7d59aaa7bd95d9b

See more details on using hashes here.

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

Hashes for fs2f-0.0.1.241223-py3-none-any.whl
Algorithm Hash digest
SHA256 882bd5889cf34c7376fc0774ff5b61bb4a30e67ad6a3ea69e12bbaacbe69404e
MD5 1a7163580f1c86c3bbd6d2e8e56c4168
BLAKE2b-256 ee3807fbe696ba4d5b9106b40528c7355cab8fd6b0da6211fea57850ec3a4557

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page