Code Monkey home page Code Monkey logo

cv4pve-node-protect's Introduction

cv4pve-node-protect

License

Description:
     ______                _                      __
    / ____/___  __________(_)___ _   _____  _____/ /_
   / /   / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/
  / /___/ /_/ / /  (__  ) / / / / |/ /  __(__  ) /_
  \____/\____/_/  /____/_/_/ /_/|___/\___/____/\__/


  Node protect for Proxmox VE                    (Made in Italy)

  cv4pve-node-protect is a part of suite cv4pve.
  For more information visit https://www.corsinvest.it/cv4pve

Usage:
  cv4pve-node-protect [command] [options]

Options:
  --username <username>     User name
  --password <password>     The Password
  --host <host> (REQUIRED)  The host name host[:port],host1[:port],host2[:port]
  --version                 Show version information
  -?, -h, --help            Show help and usage information

Commands:
  upload  Upload configuration tar.gz to node
  backup  Backup configuration form nodes using ssh

Copyright and License

Copyright: Corsinvest Srl For licensing details please visit LICENSE.md

Commercial Support

This software is part of a suite of tools called cv4pve-tools. If you want commercial support, visit the site

Introduction

Node protect for Proxmox VE.

this software create backup tar,gz file from any nodes Proxmox VE and download in local work directory. The idea are download configuration file from nodes Proxmox VE.

Main features

  • Completely written in C#
  • Use native api REST Proxmox VE (library C#)
  • Independent os (Windows, Linux, Macosx)
  • Installation unzip file extract binary
  • Not require installation in Proxmox VE
  • Execute out side Proxmox VE
  • Connect SSH

Web GUI Version in cv4pve-admin

cv4pve-admin

Configuration

E.g. install on linux 64

Download last package e.g. Debian cv4pve-node-protect-linux-x64.zip, on your os and install:

root@debian:~# unzip cv4pve-node-protect-linux-x64.zip

Backup

root@debian:~# cv4pve-node-protect --host=192.168.0.100,192.168.0.101 --username=root@pam --password=fagiano backup --keep 10 --directory-work "/mnt/data" --paths "/etc/." --paths "/var/lib/pve-cluster/." --paths "/root/." --paths "/var/lib/ceph/."

List file download

root@debian:~# ll /mnt/data
drwxrwxrwx 1 frank frank 512 Apr 16 18:38  2020-04-16-18-38-36

root@debian:~# ll /mnt/data/2020-04-16-18-38-36
-rwxrwxrwx 1 frank frank 783K Apr 16 18:38 192.168.0.100-config.tar.gz
-rwxrwxrwx 1 frank frank 783K Apr 16 18:38 192.168.0.101-config.tar.gz

cv4pve-node-protect's People

Contributors

franklupo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

spotlesscoder

cv4pve-node-protect's Issues

Suggestion - add recommended dirs/files for PVE VE backup

I think it'd be useful if in README you added an example(s) of what files and dirs are recommended for backup.

For example I used --paths "/etc/." --paths "/etc/pve/lxc/." --paths "/etc/pve/qemu-server/." --paths "/etc/pve/storage.cfg" but not sure if this is a complete list.

@franklupo
Thank you for this tool !

Renci.SshNet.Common.SshConnectionException

I've been using this script for a couple of years, but it started failing lately. Maybe after pve 8 upgrade

/usr/bin/cv4pve-node-protect --host=192.168.990.127 --username=XYZ --password=XYA backup --keep 3 --directory-work "/home/***/Dropbox/Things/XYZ/etc/." --paths "/etc/pve/lxc/." --paths "/etc/pve/qemu-server/." --paths "/etc/pve/storage.cfg"
ACTION Backup
Keep: 3
Directory Work: /home/XYZ/XYZ.net_backup
Directory Node to archive:
/etc/.
/etc/pve/lxc/.
/etc/pve/qemu-server/.
/etc/pve/storage.cfg
================ EXCEPTION ================
Renci.SshNet.Common.SshConnectionException
An established connection was aborted by the server.
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.Connect()
at Corsinvest.ProxmoxVE.NodeProtect.Api.Application.Backup(String hostsAndPort, String username, String password, String[] pathsToBackup, String directoryWork, Int32 keep, Boolean debug, TextWriter out)
at Corsinvest.ProxmoxVE.NodeProtect.ShellCommands.<>c__DisplayClass2_1.b__2()
at McMaster.Extensions.CommandLineUtils.CommandLineApplicationExtensions.<>c__DisplayClass9_0.b__0()
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)

Any help is appreciated.
TIA

password less option

Thanks for this tool !

Assuming password less option enabled, it'd be good to allow --password be omitted or empty.

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.