Skip to content

Commit

Permalink
chore: changes in the rsync command for optimized processing
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Nov 12, 2024
1 parent 37f5db6 commit 389c248
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main/java/io/spaship/sidecar/services/RequestProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,17 @@ private void rsync(String source, String destination) throws IOException, Interr
LOG.info("rsync process started");
ProcessBuilder processBuilder = new ProcessBuilder(
"rsync",
"-rlS",
"--delete",
source,
destination);
LOG.info("ProcessBuilder initialized");
"-rlS",
"--inplace",
"--stats",
"--compress",
"--delete",
source,
destination
);
LOG.info("ProcessBuilder initialized {}", processBuilder);
Process process = processBuilder.start();
LOG.info("Process started");
LOG.info("Process started {}", process);
int exitCode = process.waitFor();
LOG.info("Process completed with exit the code {}", exitCode);
/* This block reads and logs the output and error streams from the rsync process.
Expand Down

0 comments on commit 389c248

Please sign in to comment.