ruiztulio / backupws Goto Github PK
View Code? Open in Web Editor NEWA simple set of python scripts to make an Odoo 8.0 backup using oerplib
A simple set of python scripts to make an Odoo 8.0 backup using oerplib
Sometime ins more important the speed of the generated backup than the size, ie when we need to create a testdb:
The the compression process can take about 10 minutes using bz2, but about the half using gz
The most importante is this related to execute method.
Andh check that all the others functions and commands are still compatible
When a Head has been setted to point to a commit, it can not be recognized by function "reference", here:
https://github.com/ruiztulio/backupws/blob/develop/get_branches_info.py#L28
because it is detached (the symbolic reference doesn't point to a branch).
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.
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.
Utils and other files contain some pep issues that need to be fixed.
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
Here:
https://github.com/ruiztulio/backupws#using-docker-container
It is not a docker container if we're using odoo config file.
This is needed for obvious reasons, because the are some no stantad packages
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
Refactor and pylint
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.
In this case the folder must be deleted an replaced with new one
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)
Some of the scripts are still using Argparse. They all must import configargparse
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.
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
When a repo is cloned by first time, it should remove the target path if it exists and clone it again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.