Answer the question
In order to leave comments, you need to log in
How to get rsync progress using proc_open?
Good afternoon. Trying to catch rsync progress when executing php command "proc_open"
$query = "rsync --bwlimit=20000 --delete --chmod=ugo=rwX --modify-window=5 -rlpgoD --contimeout=3600 '$client_root/$src' --exclude=*/en_us/client/sandbox --info=progress2 --no-i-r --exclude=*/en_us/server/sandbox $host::drive_$drive_letter/$path";
$descriptors = array(
0 => array("pipe", "r"),
);
$proc = proc_open($query, $descriptors, $pipes);
$exitCode = proc_close($proc);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question