sysrsync icon indicating copy to clipboard operation
sysrsync copied to clipboard

Save output from rsync

Open jturmelle opened this issue 3 years ago • 1 comments

I'd like to be able to parse the output from the rsync command in order to log what was updated. I believe this can be implemented in the subprocess.run command by passing capture_output=True. I'm wondering if this capability was omitted on purpose?

jturmelle avatar Jan 07 '22 23:01 jturmelle

sorry for the long wait

PR https://github.com/gchamon/sysrsync/pull/20 enables users to pass options to subprocess.run, but I am currently reviewing it with the contributor

in the meantime, you can use sysrsync.get_rsync_command to get the raw list of commands and pass it to subprocess. This way you have control over the arguments passed to subprocess.run

gchamon avatar May 29 '22 22:05 gchamon