Giter Site home page Giter Site logo

backupws's People

Contributors

leonardo-vauxoo avatar ruiztulio avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

backupws's Issues

Add gz compression method

Sometime ins more important the speed of the generated backup than the size, ie when we need to create a testdb:

  • Bakcup main instance
  • Copy file to test server
  • Restore it
  • Deactivate it
  • Remove or keep it untill next iteration

The the compression process can take about 10 minutes using bz2, but about the half using gz

No origin error

When trying to collect a branch without "origin" remote, using branches.py it seems to fail. No error is reported from gitpython but inner information seems to be unnaccesible or unexisting.
captura de pantalla_2015-05-08_15-51-45
In the previous image: Branch "docker-runbot" (last git branch) doesn't have a remote origin. It is the only branch without "origin" and is the one with 'path' missing.
captura de pantalla_2015-05-27_19-47-04

Pep Issues

Utils and other files contain some pep issues that need to be fixed.

Change config dict

Databse config dict must be changed and added the container name/id or the odoo config file in order to refactor the code and remove a lot of duplicated and unnecesary code

Problems with branches.py

  • When building a new instance with deployv the script in charge of loading the branches from branches.json always attempts to git restore --hard even if no commit is specified resulting in "unknown revision or path not in the working tree." error.
  • Also when specifying a branch from a repo with a specific commit but that repo exists in the image with a different commit, while trying to save the new branch in the same path as the branch in the image I get "fatal: Could not parse object '1dfd8c5f1fe5ad506fd99768ca1a27335772fe64'". Only if I try to save the new branch in the same path as the old branch, if I try different paths everything goes fine.
  • Lastly, even if all the branches are cloned successfully I keep getting the log message "WARNING - Repo %s NOT LOADED"

No requirements.txt

This is needed for obvious reasons, because the are some no stantad packages

Deactivate needs to be refactored

As all other commands deactivate have to be in a proper function and the main command only have to parse the parameters and call the proper funcitions

Create a replace command

Some times we need to replace a database with a newer one, but with thesse commands you have to drop it manually first and then create the new one.

It is better in a separate command to avoy any mistake with the parameters so if you replace it is with the explicit intention of doing so.

Check readme

We need to be sure that the readme file is updated with the necessary help to use the new commands (backup and restore from docker container and deactivate)

ConfigArgParse

Some of the scripts are still using Argparse. They all must import configargparse

Checks before decompressing files

All conection and configuration parameters needs to be checked before decompressing files. Sometimes after 5 ~10 minutes decompressing thow an error because of some wrong parameters.

Test db with docker params

We should create a similar command to test_db but using the docker env vars instead of WS

Could be executed like:

python test_db_.py -d database_name_or_prefix -f dcker_name_or_id -b /path/to/backup.tar.bz2

Clone Bug

When a repo is cloned by first time, it should remove the target path if it exists and clone it again.

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.