sysrsync
sysrsync copied to clipboard
Save output from rsync
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?
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