Giter Club home page Giter Club logo

holdmyfile's Introduction

HoldMyFile

What is it?

HoldMyFile is a python program that can backup your file on the web with a single command. The same file can be restored back to its original path with just another command.

Requirements

  • Python 2
  • Python modules: click

Quickstart

Install from source

git clone https://github.com/a7i7/HoldMyFile.git
cd HoldMyFile
python setup.py install

Make sure pip is installed beforehand.

Usage

Usage: holdmyfile [OPTIONS] MODE FILE_DETAILS

  This program is used to temporarily just backup your files on the
  web.  The absolute file address is also stored. So you can just
  restore the files backs with a single command. This program is
  specially useful when you are experimenting with changes to a
  file that may later turn out to be hazardous for your system.

  To back up a file: holdmyfile give /home/dave/file.txt File
  Backed up successfully. Id is qvje

  To restore it again: holdmyfile take qvje File Restored
  successfully. File address is /home/dave/file.txt

Options:
  --path TEXT  Override default path to save file
  --help       Show this message and exit.

A real quick tutorial

Run the command to backup file

holdmyfile give /home/dave/file.txt
File Backed up successfully. Note down the id: ifgi

After some period of time when you want to restore the file back, run the following command

holdmyfile take ifgi
File Restored successfully. File address is /home/dave/file.txt

Notes

  • Has only been tested on linux so far. Not sure if it runs on Windows and Mac as well.
  • There is a limit to the filesize that can be uploaded. It is limited by speed of python and termbin.com backend software. Any rough limit of the filesize is 330 kb.

holdmyfile's People

Contributors

a7i7 avatar

Watchers

James Cloos avatar  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.