GithubHelp home page GithubHelp logo

mariotti / bmu Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 330 KB

BackMeUp - A tool to make backups for personal use and maybe system wide too

License: GNU General Public License v3.0

Shell 100.00%

bmu's Introduction

Stories in Ready

WARNING this code is at GAMMA stage

Wrong settings can ovewrite your data.

bmu

BackMeUp - A tool to make backups for personal use. Also system wide and embedded devices.

How it currently works: we want to improve this

  • install: run backmeup.install.sh
  • backup: run backmeup.sh as many times as you need or set it on a cron job
  • index: run backmeup.updatedb.sh any now and then or setup a nightly cron job
  • search: run backmeup.locate.sh

Target Requirements

  • A backup which is readable by "almost any" system. As a matter of facts the current backup system depends only on the backup device and not on the backup software. The basic software currently is "updatedb" and "locate" from the findutils package, which are widely available as default system software. There are plans to introduce additional (read to add on top of the current system) indexing software to improve the search.

  • A backup which I explore by simply listing files with "ls" or with any modern file manager.

Why another backup tool?

I was, and I am still, not happy with all the tools around. Also lately I started to use a light mac machine for quick everyday work. My current linux box is even lighter, and I use it for high load programming. This made things even worst: sharing a personal backup system within OSs.

The Mac OS Time Machine was a nice discovery and finding that I can do the same with the Unix command "rsync" was even better.

What I propose is something between a backup, a time machine and close to version control if you "control" it.

Future directions

  • The first is indeed to make it stable and generally usable.
  • A GUI
  • An archive facility to compress very old data which will still include an indexing/search facility

News

Tested on linux

Finally I got back to my linux box and tested it!

I realised the problem is not linux or mac but more gnu version or mlocate.

This will need to create an other issue. gnu or m?

bmu's People

Contributors

mariotti avatar waffle-iron avatar

Watchers

 avatar  avatar

Forkers

waffle-iron

bmu's Issues

Add a machine ID in the "update" backup

This is useful in the future. It has to be at first only in the timed backups from rsync. It has to default to a fixed value if it is not used. I suggest BMUMACID.

Design a common workflow. No code.

Design a common workflow and requirements for different scenarios. The least example is: 2 machines backing up the same project. Consider that a back rsync is available.

Create a lock facility

The first local approach will be simply to create a .lock file which might have to be removed by hands. The second step is to create these lock files:
.lock
.lock-corrent -> .lock
.lock-
.lock-master

.lock-master might still requires by hand removal but will be present on special maintenance operation and might wait for all other locks to be closed.

.lock- are used for concurrency, which are indeed using the .lock-master as a semaphore.

.lock and .lock-local are used mainly for local installations.

Create a command for cron

Create a command which does also the checking for the backup dir and eventually some disk space, etc.. which indeed has to run under cron.

Define installation path and run mode

We can use:
</usr, /usr/local>/bin/
</usr, /usr/local>/lib/bmu
/etc/bmu

What goes where?

Also, I want to keep a single place (directory) install.

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.