Skip to main content

Zeroincombenze Archive Replica

Project description

License: AGPL-3

Overview

Zeroincombenze® Archive Replica

ZAR stand for Zeroincombenze® Archive Replica. It is a tool kit to backup, restore, replicate files and/or database.

ZAR manages easily backup for Odoo database, keeps last nth copies and purges oldest copies.

Features

  • backup and restore odoo database

  • backup and restore based on rules by configuration file

  • restore database with automatic actions disabled

  • multiple copies of database by configuration file

  • automatic purging of oldest copies

  • configuration based on host name: it works on duplicate host image too

  • backup on same host or on remote host

Usage

zar should be execute by postgres user

Execute zar_upd to install and configure. Configuration file is zar.conf Execute zar_bck to do backup or restore, based on host role Execute zar_rest to do restore

To execute in cron, use zar_bck -k

There are avaiable two postgresql facilities:

  • pg_db_active

  • pg_db_reassign owner

pg_db_active show and kill postgres session. It can kill oldest session out of pool.

pg_db_reassign_owner can reassign owner to database. It reassign the ownership of all objects.

Getting started

Prerequisites

Zeroincombenze(R) tools requires:

  • Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24

  • python 2.7+, some tools require python 3.7+, best python 3.9+

  • bash 5.0+

Installation

For stable version:

pip install zar

For current version:

cd $HOME git@github.com:zeroincombenze/tools.git cd $HOME/tools ./install_tools.sh

Upgrade

Stable version via Python Package

pip install --upgrade zar

Current version via Git

cd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_tools

ChangeLog History

2.0.8 (2025-04-27)

  • [FIX] Compress tar w/o filestore

  • [IMP] python 3.11 is certificated programming language

2.0.7 (2024-12-30)

  • [IMP] pg_db_active with port for postgresql multi-version

2.0.6 (2024-08-21)

  • [IMP] pg_db_active with port for postgresql multi-version

2.0.5 (2024-05-22)

  • [FIX] zar_upd

2.0.4 (2023-09-08)

  • [IMP] Backup filestore

  • [FIX] Remote copy to /dev/null

2.0.3 (2023-09-06)

  • [FIX] DB name with hyphen (-)

2.0.2 (2023-05-14)

  • [IMP] reassing_owner accept db_port

2.0.1 (2023-02-25)

  • [IMP] Remote bckdir different from local

2.0.0 (2022-10-20)

  • [IMP] Stable version

Credits

Authors

Contributors



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zar-2.0.8.tar.gz (57.3 kB view details)

Uploaded Source

File details

Details for the file zar-2.0.8.tar.gz.

File metadata

  • Download URL: zar-2.0.8.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for zar-2.0.8.tar.gz
Algorithm Hash digest
SHA256 8d1d30574128120175ddfa9485c51f862310c90e13abf5be3fe514662a4852e8
MD5 ab7544347cf95e89f6b822fcfba54cc8
BLAKE2b-256 c40238044c825e1136346c8bf40a65e548b0fa731e0a8118c601ddb0348bbcd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page