-
Notifications
You must be signed in to change notification settings - Fork 39
/
csync2.cfg
58 lines (57 loc) · 1.32 KB
/
csync2.cfg
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
# Csync2 Example Configuration File
# ---------------------------------
#
# Please read the documentation:
# https://github.com/LINBIT/csync2/blob/master/doc/csync2.adoc
# group mygroup
# {
# host host1 host2 (host3);
# host host4@host4-eth2;
#
# key /etc/csync2.key_mygroup;
#
# #
# # WARNING:
# # You CANNOT use paths containing a symlink
# # component in include/exclude options!
# #
# # Here is a real-life example:
# # Suppose you have some 64bit Linux systems
# # and /usr/lib/ocf is what you want to keep
# # in sync. On 64bit Linux systems, /usr/lib
# # is usually a symlink to /usr/lib64.
# # This does not work:
# # include /usr/lib/ocf;
# # But this does work:
# # include /usr/lib64/ocf;
# #
#
# include /etc/apache;
# include %homedir%/bob;
# exclude %homedir%/bob/temp;
# exclude *~ .*;
#
# action
# {
# pattern /etc/apache/httpd.conf;
# pattern /etc/apache/sites-available/*;
# exec "/usr/sbin/apache2ctl graceful";
# logfile "/var/log/csync2_action.log";
# do-local;
# # you can use do-local-only if the execution
# # should be done locally only
# # do-local-only;
# }
#
# # The backup-directory needs to be created first!
# backup-directory /var/backups/csync2;
# backup-generations 3;
#
# auto none;
# }
#
# prefix homedir
# {
# on host[12]: /export/users;
# on *: /home;
# }