Giter VIP home page Giter VIP logo

borg_config's Introduction

borg

Script para agregar nuevos repositorios en un servidor BorgBackup. Genera también la configuración que se debe copiar al cliente.

Se debe correr desde el servidor.

Dependencies

  • borgbackup

Instalacion con scripts 🔧

La manera más simple de instalarlo, ejecutar los scripts de instalación en el servidor y cliente

  • SERVIDOR
#Tener previamente creado una unidad /u que es donde se guardaran los backups
wget --no-check-certificate -O - https://raw.githubusercontent.com/avillalba96/borg_config/master/scripts/server-install.sh | sh
  • CLIENTE
wget --no-check-certificate -O - https://raw.githubusercontent.com/avillalba96/borg_config/master/scripts/client-install.sh | sh

⚠️ Para Debian 6 y distros viejas: Utilizar borg 1.1.11 o 1.1.10, el script utiliza versiones más nuevas. Asegurarse compatibilidad con el servidor :warning: Evitar en lo posible la version 1.1.10, puede generar errores

Instalacion manual

  • Configurar en el script borg_config la variable SERVER con la IP o FQDN del servidor, la variable PORT con el puerto de conexiones SSH externas y la variable DIRBASE con el directorio donde se generaran los repositorios
  • Copiar borg_config en /usr/local/sbin/ y hacer ejecutable
  • Generar el directorio /etc/lunix/borg/client y /etc/lunix/borg/client/.ssh con permisos 600 para root
  • Copiar borgcron.conf en /etc/lunix/borg/client/borgcron.conf.template
  • Generar usuario "borg" y crear la carpeta /home/borg/.ssh

Uso

borg_config

Ejecutar borg_config en el servidor para generar la configuración de clientes, y luego seguir las instrucciones para copiar la configuracion en el cliente. Asegurarse que los clientes lleguen al servidor en el puerto SSH

borg_tools

Herramienta adicional para facilitar el uso de borg en el cliente. Ofrece varias operaciones mediante un menu

borg_tools_storage

Similar a borg_tools, pero permite definir sobre que configuracion se quieren realizar las operaciones

PENDIENTES 📦

  • Agregar un checkeo de backups cada cierto tiempo borg check y/o borg --dry-run extract

Autores ✒️

borg_config's People

Contributors

avillalba96 avatar

Stargazers

Fernando Azambuyo avatar

Watchers

 avatar

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.