Giter Club home page Giter Club logo

pcb's Introduction

Proxmox Config Backup-PCB v1.0

Description

Privia Security, Proxmox Config Backup-PCB v1.0 is a script designed to back up the configuration files from the /etc/pve/ and /etc/corosync/ directories on a Proxmox server and send these backups as an email via a specified SMTP server. The service is configured to run every night at 23:59. It logs the success or failure of email sending to the /var/log/pcb/ directory.

Installation

  1. wget https://raw.githubusercontent.com/mindspoof/PCB/main/setup_pcb_service.sh -O /tmp/setup_pcb_service.sh
  2. cd /tmp/
  3. Make the chmod +x setup_pcb_service.sh file executable:
  4. sudo ./setup_pcb_service.sh
  5. When the script runs, it will prompt you for the following information:
    • SMTP Server
    • SMTP Port
    • SMTP User
    • SMTP Password (hidden input)
    • Sender Address
    • Recipient Address (TO)

Usage

After installation, the script will run every night at 23:59, backing up the specified directories and sending the backups as an email. Success and failure logs of the backup and email sending process will be saved in /var/log/pcb/backup.log.

File Structure

  • setup.sh: The installation and configuration script.
  • send_pve_files.py: The backup script.
  • pcb-backup.service: The systemd service file.
  • pcb-backup.timer: The systemd timer file.

Service Management

You can manage the service and timer using the following commands:

Enable the timer:

sudo systemctl enable pcb-backup.timer

Start the service:

sudo systemctl start pcb-backup.service

Disable the timer:

sudo systemctl disable pcb-backup.timer

Log Files

Logs related to the email sending and backup processes will be saved in /var/log/pcb/pcb.log This log file will contain detailed information about errors and successful operations.

pcb's People

Contributors

mindspoof avatar

Stargazers

 avatar  avatar  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.