You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
480 B

  1. #!/bin/bash
  2. RCODE=$?
  3. smtp_dest_user=backup@altinea.fr
  4. date=`date +%F`
  5. encryption_path=/root/pbs_report/enc.key
  6. 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
  7. 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
  8. exit 1;