Fixed missing --del in backup units
This commit is contained in:
1 parent
1f120e0335
commit
fb380d3165
2 files changed
+3
-2
No files matched your search
@@ -4,9 +4,10 @@ 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 -HAax ${EXCLUDES} "${SOURCE}/" "${DESTINATION}/"'
|
||||
ExecStart=/bin/sh -c "/usr/bin/rsync ${OPTIONS} ${EXCLUDES} '${SOURCE}/' '${DESTINATION}/'"
|
||||
Reference in new issue
Block a user