summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorsr2013-04-03 15:55:30 +0200
committersr2013-04-12 19:11:40 +0200
commite9096caeb6919d8b489dfcb05a2ab9876728ee78 (patch)
tree67ffb8999c27e873652d666aeeafa41aa5a15516 /server
parentMake 'failsafe' session work on suse. Remove unneeded mesa libs. (diff)
downloadtm-scripts-e9096caeb6919d8b489dfcb05a2ab9876728ee78.tar.gz
tm-scripts-e9096caeb6919d8b489dfcb05a2ab9876728ee78.tar.xz
tm-scripts-e9096caeb6919d8b489dfcb05a2ab9876728ee78.zip
Run rsync with --delete when syncing from remote system
Diffstat (limited to 'server')
-rwxr-xr-xserver/export_target4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/export_target b/server/export_target
index 97e8feb0..4848fc09 100755
--- a/server/export_target
+++ b/server/export_target
@@ -42,12 +42,12 @@ initial_checks() {
}
sync_remote() {
-
+ [[ "${#SERVER_BUILD_DIR}" -lt "10" ]] && perror "Safety check failed: SERVER_BUILD_DIR is less than 10 chars. ($SERVER_BUILD_DIR)"
pinfo "Synching 'remote/builds' to 'server/remote_builds'..."
#TODO setup link to remote build directory, later this directory will be rsynced or exported to this server...
mkdir -p "${SERVER_BUILD_DIR}" || perror "Could not create directory for local copy of remote system ($SERVER_BUILD_DIR)"
- rsync -a -v -e "ssh -oStrictHostKeyChecking=no" "root@$REMOTE_IP:/export/build/*" "$SERVER_BUILD_DIR" || perror "rsync from 'root@$REMOTE_IP:/export/build' to '$SERVER_BUILD_DIR' failed."
+ rsync -a --delete -v -e "ssh -oStrictHostKeyChecking=no" "root@$REMOTE_IP:/export/build/*" "$SERVER_BUILD_DIR" || perror "rsync from 'root@$REMOTE_IP:/export/build' to '$SERVER_BUILD_DIR' failed."
}
generate_stage32() {