#!/bin/bash
# If no param is provided the script looks for the COMPUTERNAME and seeks special backup definition in a subfolder
# If no subfolder is provided the script uses the root folder backup definition /mnt/union/shared/bck2pbs/bck2pbs_source.txt
# if a param is provided the script looks for the special backup definition in the subfolder /mnt/union/shared/bck2pbs/$1
export PBS_REPOSITORY=bck_ops@pbs@kit.swallow-grue.ts.net:pbs-data
export PBS_PASSWORD=Wiry3-Finally-Juror-Glorious
export PBS_FINGERPRINT="8b:eb:4e:32:0e:26:18:c8:f8:83:40:3a:89:1d:5f:44:7a:e9:52:35:1c:94:24:ca:61:0d:80:63:8d:14:86:ad"
BACKUP_COMMAND=proxmox-backup-client
SRC_BASE_PATH=/mypool1/data/shared/bck2pbs
DST_PATH=/opt/scripts_local
SSH_HOST=""

sudo_check


echo "Preparing backup."
sudo apt-get clean cache

sudo proxmox-backup-client backup mypool1.pxar:/mypool1



