Sep-12-2024, 05:33 PM
I use rsync regularly, but never from Python. Why would you do that?
Look here in linuxquestions.org, an answer from michaelk, who has helped me many times!
Basically, he made a string called arg:
then handed it to subprocess.run()
Either this post in lq was you, or you are copying it!
Canondale said this works in a terminal:
Look here in linuxquestions.org, an answer from michaelk, who has helped me many times!
Quote:arg="rsync -avn "+ bk_src_dir + " " + bk_tar_dir
subprocess.run(arg,shell=True)
Basically, he made a string called arg:
Quote:"rsync -avn "+ bk_src_dir + " " + bk_tar_dir
then handed it to subprocess.run()
Either this post in lq was you, or you are copying it!
Canondale said this works in a terminal:
Quote:rsync -a /home/jer/.[^.]*/ /Temp