Skip to content
Snippets Groups Projects
Commit 93a65db0 authored by Bob Mottram's avatar Bob Mottram
Browse files

Delete files if needed

parent f73ec4bc
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ function rsync_setting_remote {
{ echo '#!/bin/bash';
echo "cd $RSYNC_DATA || exit 1";
echo "if torsocks rsync -aqrm ${rsync_hostname}::${rsync_module}/ $RSYNC_DATA; then";
echo "if torsocks rsync -aqrm --delete ${rsync_hostname}::${rsync_module}/ $RSYNC_DATA; then";
echo " ${PROJECT_NAME}-notification -s 'rsync succeeded' -m 'Sync with ${rsync_hostname}::${rsync_module} succeeded'";
echo 'else';
echo " ${PROJECT_NAME}-notification -s 'rsync failed' -m 'Sync with ${rsync_hostname}::${rsync_module} failed'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment