From a135b33d8c1840088e478fd389909529112b5659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C3=A9bastien?= Date: Thu, 15 Feb 2024 14:54:05 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20PBS/cephfs=5Fback?= =?UTF-8?q?up.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PBS/cephfs_backup.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 PBS/cephfs_backup.sh diff --git a/PBS/cephfs_backup.sh b/PBS/cephfs_backup.sh new file mode 100644 index 0000000..1d4dffb --- /dev/null +++ b/PBS/cephfs_backup.sh @@ -0,0 +1,7 @@ +#!/bin/bash +RCODE=$? +smtp_dest_user=backup@altinea.fr +date=`date +%F` +PBS_PASSWORD=password proxmox-backup-client backup CephFS.pxar:/mnt/pve/boutiques/ --repository users@sreveur:Datastore > /root/pbs_report/pbs_save_report_$date.txt +echo `cat /root/pbs_report/pbs_save_report_$date.txt` | mutt -s 'Rapport de sauvegarde Cephfs_torop' -a /root/pbs_report/pbs_save_report_$date.txt -- $smtp_dest_user +exit 1;