Browse Source

modifié : PBS/cephfs_backup.sh

master
Sébastien Faton 10 months ago
parent
commit
4d46c047a9
  1. 3
      PBS/cephfs_backup.sh

3
PBS/cephfs_backup.sh

@ -2,6 +2,7 @@
RCODE=$? RCODE=$?
smtp_dest_user=backup@altinea.fr smtp_dest_user=backup@altinea.fr
date=`date +%F` 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
encryption_path=/root/pbs_report/enc.key
PBS_PASSWORD=password proxmox-backup-client backup CephFS.pxar:/mnt/pve/boutiques/ --repository users@sreveur:Datastore --keyfile $encryption_path > /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 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; exit 1;
Loading…
Cancel
Save