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.
14 lines
377 B
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}/'"
|