From 6230297b627412b0c9bc3ba8dbfe9a63bf595aea Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Wed, 14 Sep 2022 16:16:42 +0200
Subject: [PATCH] add -t param in rsync

---
 public_html/deployment/classes/project.class.php | 2 +-
 shellscripts/cron_sync_packages.php              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 3ce06797..ebf90df8 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -2220,7 +2220,7 @@ class project extends base {
                     $sTarget = $aTarget['target'] . "/$sPhase";
                     switch ($aTarget['type']) {
                         case 'rsync':
-                            $sCmd = "ls -l $sSource 2>/dev/null && /usr/bin/rsync --delete -rLv  $sSource $sTarget";
+                            $sCmd = "ls -l $sSource 2>/dev/null && /usr/bin/rsync --delete -rLvt  $sSource $sTarget";
                             break;
                         default:
                             $sReturn.=sprintf(t("class-project-info-deploy-skip-sync"), $aTarget['type']) . "<br>";
diff --git a/shellscripts/cron_sync_packages.php b/shellscripts/cron_sync_packages.php
index 3536b8a4..4ebce915 100644
--- a/shellscripts/cron_sync_packages.php
+++ b/shellscripts/cron_sync_packages.php
@@ -25,7 +25,7 @@
                     $sTarget=$aTarget['target']."/$sPhase";
                     switch ($aTarget['type']) {
                         case 'rsync':
-                            $sCmd="ls -l $sSource 2>/dev/null && /usr/bin/rsync --delete -rLv  $sSource $sTarget";
+                            $sCmd="ls -l $sSource 2>/dev/null && /usr/bin/rsync --delete -rLvt  $sSource $sTarget";
                             break;
                         default:
                             echo "ERROR: type ".$aTarget['type']." ist not supported (yet) - skipping.";
-- 
GitLab