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

13 lines
338 B

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