You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bs-units/backup-files-rsync.service

14 lines
377 B

[Unit]
Description=Backup Files
[Service]
Environment=SOURCE=/path/to/source
Environment=DESTINATION=user@host:/path/to/destination
Environment=OPTIONS="-HAax --del"
Environment=EXCLUDES="--exclude path1 --exclude path2"
Type=simple
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/bin/sh -c "/usr/bin/rsync ${OPTIONS} ${EXCLUDES} '${SOURCE}/' '${DESTINATION}/'"