backive/backive.yml

36 lines
934 B
YAML
Raw Normal View History

devices:
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:
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: /tmp/backive/backive.sock
logLocation: /var/log/backive
dbLocation: /var/lib/backive