File: default

package info (click to toggle)
clsync 0.4.5-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,404 kB
  • sloc: ansic: 15,074; sh: 466; makefile: 269
file content (24 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# === non-systemd ===

# clsync is not enabled by default. To enable it replace "false" with "true":
CLSYNC_ENABLE=false
CLSYNC_IONICE_CLASS=3
# Example:
CLSYNC_ARGS='-M rsyncdirect --output=syslog -L /dev/shm/clsync -x 23 -W /var/www -S /usr/bin/rsync -D /mnt/backup'

# === systemd ===

CLSYNC_ARGS_SYSTEMD='-b0 -Ystderr'
# Example:
# mkdir -p /etc/clsync
# cat > /etc/clsync/clsync.conf <<EOF
# [SomeConfig]
# mode = simple
# watch-dir = /tmp
# sync-handler = echo
# EOF
# systemctl enable clsync@SomeConfig
# systemctl start clsync@SomeConfig
# systemctl status clsync@SomeConfig