Git Product home page Git Product logo

ansible-proxmox-backup's Introduction

tobias_richter.proxmox_backup

Build Status

This role setups a backup for the proxmox configuration. This role reuses the backup script prox_config_backup.sh from https://github.com/DerDanilo/proxmox-stuff/ by wrapping it and providing configurable values for BACK_DIR and TMP_DIR.

Requirements

This role requires Ansible 2.7 or higher.

Role Variables

Available variables are listed below, along with their default values (see defaults/main.yml):

proxmox_backup_script_url: https://raw.githubusercontent.com/DerDanilo/proxmox-stuff/3660e828a2014738a2a2736ae850c6edbae55592/prox_config_backup.sh

URL to retrieve the backup script from.

proxmox_backup_script_path: /usr/local/sbin/prox_config_backup.sh

Path of the backup script on the proxmox instance.

proxmox_backup_wrapper_script_path: /usr/local/sbin/prox_config_backup_wrapper.sh

Path of the wrapper script that configures the real backup script.

proxmox_backup_dir: /mnt/backups/proxmox

The destination directory for the backups.

proxmox_backup_temp_dir: /var/tmp

Temp dir used during backup creation.

proxmox_backup_log_dir: /var/log/pve-backup
proxmox_backup_log_file: "{{ proxmox_backup_log_dir }}/pve-backup.log"

Path for the backup log files and path to the logfile.

proxmox_backup_cron_configure: false

Enables/Disables the task for managing the cronjob.

# proxmox_backup_cron_minute:
# proxmox_backup_cron_hour:
# proxmox_backup_cron_day:
# proxmox_backup_cron_month:
# proxmox_backup_cron_weekday:
# proxmox_backup_cron_special_time:

Use the proxmox_backup_cron_.* vars to configure the execution times for the cronjob.

Example Playbook

Configures the backup to be executed every friday at 21:30.

- hosts: pve
  roles:
    - role: tobias_richter.proxmox_backup
      proxmox_backup_cron_configure: true
      proxmox_backup_cron_hour: 21
      proxmox_backup_cron_minute: 30
      proxmox_backup_cron_weekday: 5

ansible-proxmox-backup's People

Contributors

tobias-richter 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.