Skip to content

Commit 389c248

Browse files
authored
chore: changes in the rsync command for optimized processing
1 parent 37f5db6 commit 389c248

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/main/java/io/spaship/sidecar/services/RequestProcessor.java

+10-6
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,17 @@ private void rsync(String source, String destination) throws IOException, Interr
183183
LOG.info("rsync process started");
184184
ProcessBuilder processBuilder = new ProcessBuilder(
185185
"rsync",
186-
"-rlS",
187-
"--delete",
188-
source,
189-
destination);
190-
LOG.info("ProcessBuilder initialized");
186+
"-rlS",
187+
"--inplace",
188+
"--stats",
189+
"--compress",
190+
"--delete",
191+
source,
192+
destination
193+
);
194+
LOG.info("ProcessBuilder initialized {}", processBuilder);
191195
Process process = processBuilder.start();
192-
LOG.info("Process started");
196+
LOG.info("Process started {}", process);
193197
int exitCode = process.waitFor();
194198
LOG.info("Process completed with exit the code {}", exitCode);
195199
/* This block reads and logs the output and error streams from the rsync process.

0 commit comments

Comments
 (0)