Files
RsyslogAutomate/automateRsync.py
Victor Gallego Izquierdo 5724752202 initial definition of script
2024-04-12 14:07:42 +02:00

13 lines
372 B
Python

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)