[[chapter_module_safe]]

// ################################################ CAPITOLO 4 ################################################
// ################################################ MODULI ################################################

// ################################################ SAFE ################################################

= Safe

//  SNAP
== Automatic Snapshots

Take a snapshot of a VM/CT at a fixed interval with a retention.

=== Implementation ===
----
We started in 2016 with command line development https://github.com/Corsinvest/cv4pve-autosnap[Github] and then implemented the web portal.
----

=== Note ===

WARNING: Do not schedule less than 15 minutes, there may be performance problems.

WARNING: If you include memory, the space and time will increase considerably. Test it before deploying to production environment.

NOTE: Pay attention to the timeout time.

NOTE: The location of the autosnap storage space is the same where the VM disk is located. This reduces the total storage capacity.

=== Tasks ===
----
Grid with tasks configured.
----

[.thumb]
image:screenshot/modules/autosnap/modules-safe-autosnap.png[]

=== New and edit Task ===

[.thumb]
image:screenshot/modules/autosnap/modules-safe-autosnap-conf.png[]

=== Edit Hook ===
[.thumb]
image:screenshot/modules/autosnap/modules-safe-autosnap-hook-conf.png[]

The environments are replace with values.

Example for InfluxDb for cv4pve-autosnap

[horizontal]

Url:: http://INFLUXDB_HOST:8086/write?db=INFLUXDB_NAME

Data:: cv4pve-autosnap,vmid=%CV4PVE_AUTOSNAP_VMID%,type=%CV4PVE_AUTOSNAP_VMTYPE%,label=%CV4PVE_AUTOSNAP_LABEL%,vmname=%CV4PVE_AUTOSNAP_VMNAME%,success=%CV4PVE_AUTOSNAP_STATE% success=%CV4PVE_AUTOSNAP_STATE%,duration=%CV4PVE_AUTOSNAP_DURATION%

=== Status ===
----
Show status
----

[.thumb]
image:screenshot/modules/autosnap/job-status.png[]


=== History ===
----
Show History
----

[.thumb]
image:screenshot/modules/autosnap/job-history.png[]

=== Timeline ===
----
Show Scheduling Timeline
----

[.thumb]
image:screenshot/modules/autosnap/time-line.png[]

=== Status ===
----
Show Scheduling status
----

[.thumb]
image:screenshot/modules/autosnap/tasks-status.png[]

=== In Error ===
----
Show Errors
----

[.thumb]
image:screenshot/modules/autosnap/in-errors.png[]


//  Node Protect

== Node Protect
----
Save your configurations in case of disaster recovery.
----

=== Description ===
----
Proxmox VE perfectly performs VM/CT backups. The rest of the system configurations are not saved. E.G. /etc/pve or information cluster
----

=== Implementation ===
----
We started in 2019 with command line development https://github.com/Corsinvest/cv4pve-node-protect[Github] and then implemented the web portal.
----

=== General ===

[.thumb]
image:screenshot/modules/node-protect/grid.png[]