Coder Social home page Coder Social logo

pythonstreamarchiver's Introduction

StreamArchiver

StreamArchiver is an efficient script for incrementally packing a directory into a tar file while deleting the source files on the fly, eliminating the need for extra temporary space required by traditional methods that keep both the tar and the source files during the process. This space-saving approach is particularly useful in storage-constrained environments. This approach is handy for environments with limited storage.

Features

  • Saves disk space by avoiding the need to duplicate files in source folder and tar file.
  • Deletes files immediately after archiving if they have been successfully added to the tar archive.

Prerequisites

You need Python 3.x installed on your machine to use StreamArchiver.

Installation

To get started with StreamArchiver, clone this repository:

git clone https://github.com/yourgithubusername/StreamArchiver.git
cd StreamArchiver
python stream_archiver.py <source_directory> <output_tar_path>

Replace <source_directory> with the directory you want to archive, and <output_tar_path> with the desired tar file path.

Warning

StreamArchiver is a basic script and hasn't been extensively tested. There is a potential risk of data loss. Use it cautiously, and always back up important data first.

Contributing

Feel free to fork this repository, make improvements, and submit pull requests. Any contributions are welcome!

License

StreamArchiver is open-source under the MIT License. See the LICENSE file for more details.

pythonstreamarchiver's People

Contributors

yuygfgg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.