curl – Run Rsync from Python

curl – Run Rsync from Python

You can call a subprocess from python using the following snippet

import subprocess
subprocess.call([ls, -l])

In your case, it would be something like this

subprocess.call([rsync, -Ccavz, --delete,DJStatic, [email protected]])

See here for more details.

curl – Run Rsync from Python

Leave a Reply

Your email address will not be published. Required fields are marked *