diff --git a/automateRsync.py b/automateRsync.py new file mode 100644 index 0000000..29acb19 --- /dev/null +++ b/automateRsync.py @@ -0,0 +1,13 @@ +import os + +def rsyncConection(src, dest, user, host, password_file): + conn = f"rsync --rvpog --times --atimes --update --delete {src} {user}@{subprocess.call(["ls", "-l"])}:{ruta_final}" + os.system(conn) + +if __name__ == "__main__": + src = "" + dest = "" + user = "" + host = "" + password_file = "" + rsyncConection(src, dest, user, host, password_file) \ No newline at end of file