Git Product home page Git Product logo

linux-time-machine.sh's Introduction

linux-time-machine.sh's People

Contributors

eduardolisboa-mandic avatar eduardolisboa-rivendel avatar elisboa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linux-time-machine.sh's Issues

Running twice when `push-remote` is used

Problem description: When tmgit.sh is ran with push-remote argument, the entire system is ran twice.

Possible suggestions:

  1. make an exit after running the commits for the first time
  2. push-remote should just push to the remote repos, without running anything else

Bug on tmgit.sh line 45

There's a bug on line 45, which prevents the script from running. It's a typo:

            export GIT_WORK_TRSAIU github.com/elisboa/linux-time.machine.sh - só baixar que já tá atualizadoEE="${argument}"

Use tags instead of branches

There should be an option in which tags are used instead of branches (or maybe both?), to make it easier to use in certain environments where there may be write access conflicts

Include a "version-all" mode

Originally this project only versions what you explicitly and manually add. In some cases, the desired behavior is the exact opposite of it: version absolutely everything all the time inside a directory.

So, a "version-all" mode should always add and version any newly added files to the directory.

Create a "mirror-mode"

Instead of automatically version all changes, a "mirror-mode" should be created to do exactly the inverse: preserve the last commit from the last branch.

Include a verbose mode

Since this time machine automatically commits changes, there should be a verbose mode showing a "diff" of what has changed.

Inserir contador automático de código de erro

Hoje o código de erro é contado manualmente. Isto é um problema, pois caso uma funcionalidade seja inserida no meio do código já existente, toda a ordem dos códigos de erro deverá ser alterada.

Um contador automático de código de erro deverá ser inserido, de maneira a permitir um controle melhor da parte do programa onde o erro ocorreu.

Uset .tmgit instead of .dotfiles as git dir

The .dotfiles dir was used as a test and ended up being used until today. So, it would be better to use .tmgit instead of a generic name like .dotfiles.

However, we should check if there is a recommend way to migrate all existing data: if by moving the directory or if by using git init.

Auto-update feature

This feature should look for the latest stable tagged release and automatically update it when run. If a configuration file is used, it could be toggled. Before that, it should be a parameter passed when running tmgit.sh

create a configuration wizard

I believe that to facilitate the configuration of the time machine a wizars-style configurator can be created. Something like this:

time-machine configure-folder

  1. Set the folder to versioning:
    /etc

  2. Choose the time to backup:
    -> Peer day
    -> Peer hour
    -> Custom (crontab format)

  3. Occurrence of backup (per day or our previous select):
    -> The answer here is going to be every x days or hours.

And for change settings for a folder that is already sync in time machine can be something like:

time-machine reconfigure-folder

  1. Select the folder to reconfigure:
    -> List all the folder using time machine.

  2. Choose the time to backup:
    -> Peer day
    -> Peer hour
    -> Custom (crontab format)

  3. Occurrence of backup (per day or our previous select):
    -> The answer here is going to be every x days or hours.

Use git environment variables

Today, the project uses it's own variables, but it could use git already known variables, such as:

  • $GIT_BIN
  • $TMGIT_WORK_DIR

It should use the following git vars:

  • $GIT_DIR
  • $GIT_WORK_TREE

and these adittional others as well:

  • $GIT_COMMITTER_NAME
  • $GIT_COMMITTER_EMAIL

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.