From 5724752202efb2aa5597c9b58a4ac0a397bb3a67 Mon Sep 17 00:00:00 2001 From: Victor Gallego Izquierdo Date: Fri, 12 Apr 2024 14:07:42 +0200 Subject: [PATCH] initial definition of script --- automateRsync.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 automateRsync.py 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