initial definition of script
This commit is contained in:
13
automateRsync.py
Normal file
13
automateRsync.py
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user