Skip to main content

A FileSystem that preserves original files.

Project description

Table of Contents

  1. Introduction
  2. Installation
    1. Requirements
    2. Install
  3. Example
    1. Running PreservedFS example
    2. Using PreservedFS example

Introduction

PreservedFS is a Filesystem in Userspace that aims at mounting a folder, doing modifications inside the mounted folder while preserving the original files.

To achieve this, PreservedFS uses three folders :

  • target or root: the folder to be mounted
  • local: the folder that will keep only the modifications from target
  • mnt: the folder you will browse that is an union of target and local that reflect the original files with the changes from local.

Installation

Requirements

You need Python 2.3 or newer to be installed. You also need the libfuse library on your system (shipped by all major Linux distributions).

Then, to install it:

    pip install preservedfs

Example

An example is given in the repository under the example folder.

Running PreservedFS example

PreservedFS comes with a Command Line Interface (CLI). So once installed, you can run:

preservedfs ~/preservedfs/example/target ~/preservedfs/example/mnt ~/preservedfs/example/local

Using PreservedFS example

You can then browse to the example/mnt folder which is the folder mounted by PreservedFS.

You will see a union of the content of the folders example/target and example/local.

If you modify a file within the example/mnt folder (such as this one EXAMPLE.org), the changes will be written in example/local and reflected in example/mnt but the original file will be preserved!

You can play around by creating / deleting files in example/mnt and see how it affects the folders example/local and example/target.

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

preservedfs-0.1.5.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

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

preservedfs-0.1.5-py2.py3-none-any.whl (32.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file preservedfs-0.1.5.tar.gz.

File metadata

  • Download URL: preservedfs-0.1.5.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for preservedfs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5a5af96fca4d78d90b2cdab742d2ac6050be56c893fb32afd5cac219ce6e43f9
MD5 5d5e3038e873ee9773473ec137dfa581
BLAKE2b-256 0513df0b41f34f6de27d94ee7d4014a63efbfdcbb6fb376f0b6d42c5c41a70e7

See more details on using hashes here.

File details

Details for the file preservedfs-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: preservedfs-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for preservedfs-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1fd438fb2643f9e26ce4fd67b41bce4999c1955f011d38090db6d9356b3634d9
MD5 a619acfb200cc7a86255dbf3f45237cf
BLAKE2b-256 79c664a3b35525b5863679ecd7f58dc62f5e5dc16a0a59d353a1cab4b4f1f333

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