-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackupToBackupPC.config
More file actions
executable file
·30 lines (26 loc) · 932 Bytes
/
backupToBackupPC.config
File metadata and controls
executable file
·30 lines (26 loc) · 932 Bytes
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
#!/bin/bash
#
# last change: 3.1.2015
#
# description: this is a script which can be started as cronjob or startup script do
# make daily backus to the BackupPc-Server for clients which are not online all the
# time like server, eg. for workstations.
# author: gregor binder
# contact: office@wefixit.at
# license: Creative Commons by-nc-sa 4.0 http://creativecommons.org/licenses/by-nc-sa/4.0
# global
FILE_LAST_STATE=/path/to/backupToBackupPC.lastState
FILE_LOG=/path/to/backupToBackupPC.log
PIDFILE=/path/to/backupToBackupPC.pid # see lib/checkPid.sh
DEBUG=true # see lib/logging.sh
JOB=/path/to/backupToBackupPC.job
# config for the job
SERVER=server
USER=backuppc
HOST=host
CMD_DUMP=/usr/share/BackupPC/bin/BackupPC_dump
CMD_FIX_SUMMARY=/usr/share/BackupPC/bin/BackupPC_fixupBackupSummary
CMD="ssh $USER@$SERVER $CMD_DUMP -v -i $HOST"
TODAY=`date +%Y%m%d`
source /path/to/lib/logging.sh
source /path/to/lib/checkPid.sh