From fd7ae05a6738377eabedeb8b2577103747f9591b Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 17 Nov 2021 03:33:28 +1000 Subject: Log rsync progress. --- src/sledjchisl/sledjchisl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 10b5ece..e575fc9 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -2769,9 +2769,11 @@ byTab has the short name as the key, simData as the value. sendTmuxCmd(ourSims->backup, ""); if ('\0' != rSync[0]) { - if (shellMeFail("ionice -c3 nice -n 19 rsync -Ha -R --modify-window=2 --partial --port=%d --remove-source-files %s/*.iar %s", + I("%s %s is rsyncing.", sim, last); + if (shellMeFail("ionice -c3 nice -n 19 rsync -Ha -R --modify-window=2 -P --port=%d --remove-source-files %s/*.iar %s", rSyncPort, scBackup, rSync)) E("rsync failed"); + I("%s %s is done rsyncing.", sim, last); } ourSims->la = waitLoadAverage(ourSims->la, loadAverageInc, simTimeOut); } @@ -2799,9 +2801,11 @@ byTab has the short name as the key, simData as the value. sendTmuxCmd(simd->paneID, ""); if ('\0' != rSync[0]) { - if (shellMeFail("ionice -c3 nice -n 19 rsync -Ha -R --modify-window=2 --partial --port=%d --remove-source-files %s/*.oar %s", + I("%s is rsyncing.", simd->name); + if (shellMeFail("ionice -c3 nice -n 19 rsync -Ha -R --modify-window=2 -P --port=%d --remove-source-files %s/*.oar %s", rSyncPort, scBackup, rSync)) E("rsync failed"); + I("%s is done rsyncing.", simd->name); } ourSims->la = waitLoadAverage(ourSims->la, loadAverageInc, simTimeOut); } -- cgit v1.1