mirror of
https://github.com/bashclub/miyagi-pbs-zfs.git
synced 2025-12-06 09:28:44 +00:00
Update pbs-zfs-daily.sh
Added Auto-Snapshot to protect Backups
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#Requirements for Myiagi ultimate Backup
|
#Requirements for Myiagi ultimate Backup
|
||||||
## Proxmox Source Host, Proxmox Destination Host, Destination Public SSH Key on Source authorized-keys File, autostarting Proxmox Backupserver running on this PVE, zfs set com.sun:auto-snapshots=false on $ZFSTRGT, instaled checkzfs from https://github.com/bashclub/check-zfs-replication, check_mk Agent running on PVE
|
## Proxmox Source Host with only daily Autosnapshots, Proxmox Destination Host, Destination Public SSH Key on Source authorized-keys File, autostarting Proxmox Backupserver running on this PVE, zfs set com.sun:auto-snapshots=false on $ZFSTRGT, instaled checkzfs from https://github.com/bashclub/check-zfs-replication, check_mk Agent running on PVE
|
||||||
|
|
||||||
SOURCEHOST='192.168.0.241' # IP from Proxmox VE System to be backuped and replicated daily
|
SOURCEHOST='192.168.0.241' # IP from Proxmox VE System to be backuped and replicated daily
|
||||||
SOURCEHOSTNAME='PVE' #Hostname of Proxmox VE System to be backuped and replicated daily
|
SOURCEHOSTNAME='PVE' #Hostname of Proxmox VE System to be backuped and replicated daily
|
||||||
@@ -78,4 +78,6 @@ scp /tmp/90000_checkpbs root@SOURCEHOST:/var/lib/check_mk_agent/spool
|
|||||||
ssh root@$PBSHOST proxmox-backup-manager verify backup
|
ssh root@$PBSHOST proxmox-backup-manager verify backup
|
||||||
ssh root@$SOURCEHOST pvesm set backup --disable 1
|
ssh root@$SOURCEHOST pvesm set backup --disable 1
|
||||||
|
|
||||||
|
/etc/cron.daily/zfs-auto-snapshot
|
||||||
|
|
||||||
#shutdown now
|
#shutdown now
|
||||||
|
|||||||
Reference in New Issue
Block a user