-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackive-example.yml
46 lines (44 loc) · 1.22 KB
/
backive-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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