initial definition of script
This commit is contained in:
1 parent
01d17b8d00
commit
5724752202
1 file changed
+13
@@ -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