backive/backive-example.yml

47 lines
1.2 KiB
YAML

devices:
dev_test:
uuid: 714dc1f8-00d7-44b4-b03c-b54498c7cb86
owner: qwc
scanner-usbstick:
uuid: 72A9-D8C5
#mountname: scanner_usbstick
owner: qwc
server-backups:
uuid: d220b335-ded9-48f5-bc03-800a3f953c34
#mountname: server_backups
owner: qwc
backups:
dev_test_backup:
user: qwc
targetDevice: dev_test
frequency: 2
scriptPath: /home/qwc/source/backive/testbackup.sh
sourcePath: /home/qwc/web/worktime
targetPath: worktime
label: "Development test backup"
scanner_usbstick_test:
user: qwc
targetDevice: scanner-usbstick
frequency: 0
scriptPath: ./testbackup.sh
script: |
#! /usr/bin/env bash
#
set -x
ls -la ${BACKIVE_MOUNT}/${BACKIVE_TO}
echo "This is a test..."
echo "mount/to ${BACKIVE_MOUNT}/${BACKIVE_TO}"
mkdir -pv ${BACKIVE_MOUNT}/${BACKIVE_TO}
cp -Rv ${BACKIVE_FROM}/* ${BACKIVE_MOUNT}/${BACKIVE_TO}/
ls -la ${BACKIVE_MOUNT}/${BACKIVE_TO}
ls -la ${BACKIVE_MOUNT}
sourcePath: /home/qwc/web/worktime
targetPath: worktime
settings:
systemMountPoint: /mnt/backups
unixSocketLocation: /var/local/backive/backive.sock
logLocation: /var/log/backive
dbLocation: /var/lib/backive