-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackup_example.conf
More file actions
executable file
·81 lines (62 loc) · 2.74 KB
/
backup_example.conf
File metadata and controls
executable file
·81 lines (62 loc) · 2.74 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/perl
#
# @author Gerhard Steinbeis (info [at] tinned-software [dot] net)
# @copyright Copyright (c) 2002 - 2013
#
# @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3
# @package backup
#
#########################################
# Programm Settings #
#########################################
#$debug = "2"; # a lot of printout in debug mode
$log_dir = "/path/to/logfile/"; # save all output to file.
$user = "user:group"; # user for the backup files
$permission = "ug+rw"; # permission for the backup files
#########################################
# Backup settings #
#########################################
$md5_dir = "/path/to/md5_files/"; # directory for the md5 files
$dec_complete = "1"; # make every 10. 20. and 30 a complete backup
# DONT USE $rm_old SET TO 1 WITH $dec_complete SET TO 0 !!!!!
#########################################
# Archive settings #
#########################################
$dir_content = "1"; # lists the directory content
$rm_old = "1"; # remove old backup every 10. 20. 30.
# DONT USE $rm_old SET TO 1 WITH $dec_complete SET TO 0 !!!!!
#########################################
# E-Mail notification #
#########################################
$from_email = "<backup\@example.com>";
$email = "<recipient\@example.com>"; # reciver for mail notification
$send_mail = "2"; # send a mail every 10., 20. and 30. = 1
# send a mail every execution = 2
#########################################
# scripts will be executed with "stop" #
# befor and with "start" after backup. #
#########################################
$sc = 0;
#$commands[$sc++] = "/path/to/script.sh";
#$commands[$sc++] = "/path/to/script2.sh";
$scripts = $sc;
#########################################
# Backup directorys #
#########################################
$backup_dir = "/path/to/backup/"; # directory for the backup
$bc = 0;
$source_dir[$bc] = "/etc/";
$archive_name[$bc] = "etc";
$ignore_pattern[$bc] = "webmin\/.*\/rotate\.pid|webmin\/.*\/fails.lock";
$bc = $bc + 1;
$source_dir[$bc] = "/root";
$archive_name[$bc] = "root";
$ignore_pattern[$bc] = "";
# add archive configuration for each user's home directory
user_archives();
# add archive configuration for each directory found in given path
directory_archives("/var/www/html/");
$backup_Count = $bc;
#########################################
# END OF FILE
#########################################