mirror of https://github.com/qwc/backive.git
32 lines
773 B
YAML
32 lines
773 B
YAML
devices:
|
|
scanner-usbstick:
|
|
uuid: 72A9-D8C5
|
|
mountname: scanner_usbstick
|
|
owner: qwc
|
|
server-backups:
|
|
uuid: d220b335-ded9-48f5-bc03-800a3f953c34
|
|
mountname: server_backups
|
|
owner: qwc
|
|
backups:
|
|
scanner_usbstick_test:
|
|
user: qwc
|
|
target_device: scanner-usbstick
|
|
frequency: 0
|
|
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}
|
|
from: /home/qwc/web/worktime
|
|
to: worktime
|
|
preferences:
|
|
mount_root: /mnt/backups
|
|
|
|
|