backive/backive.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

devices:
dev_test:
uuid: 714dc1f8-00d7-44b4-b03c-b54498c7cb86
owner: qwc
scanner-usbstick:
uuid: 72A9-D8C5
2021-12-20 23:17:24 +01:00
#mountname: scanner_usbstick
owner: qwc
server-backups:
uuid: d220b335-ded9-48f5-bc03-800a3f953c34
2021-12-20 23:17:24 +01:00
#mountname: server_backups
owner: qwc
backups:
dev_test_backup:
user: qwc
targetDevice: dev_test
frequency: 0
scriptPath: /home/qwc/source/backive/testbackup.sh
sourcePath: /home/qwc/web/worktime
targetPath: worktime
scanner_usbstick_test:
user: qwc
2021-12-20 23:17:24 +01:00
targetDevice: scanner-usbstick
frequency: 0
2021-12-20 23:17:24 +01:00
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}
2021-12-20 23:17:24 +01:00
sourcePath: /home/qwc/web/worktime
targetPath: worktime
settings:
systemMountPoint: /mnt/backups
unixSocketLocation: /var/local/backive/backive.sock
2021-12-20 23:17:24 +01:00
logLocation: /var/log/backive
dbLocation: /var/lib/backive