Commit cb9de9f3 authored by Gary Ruben's avatar Gary Ruben
Browse files

reconciling today's changes; just the find command wascleaned up

parent eb5f5176
......@@ -125,7 +125,7 @@ def tar_and_send_directory(node):
# Only one file. No need to tar. Just copy unchanged.
output = subprocess.run(
f"ssh {REMOTE_LOGIN} 'cd {node.src};"
rf"find -maxdepth 1 -type f -printf '%f\n' | cpio -o' |"
f"find -maxdepth 1 -type f | cpio -o' |"
f"cat > {node.dest}/{files}",
shell=True,
check=True
......@@ -143,8 +143,11 @@ def tar_and_send_directory(node):
output = subprocess.run(
f"ssh {REMOTE_LOGIN} 'cd {node.src};"
rf"find -maxdepth 1 -type f -printf '%f\n' -print0 |"
f"find -maxdepth 1 -type f -print0 |"
f"cpio -o -H ustar -0' | cat > {node.dest}/{filename}.tar",
# f"ssh {REMOTE_LOGIN} 'cd {node.src};"
# rf"find -maxdepth 1 -type f -printf '%f\n' -print0 | tee >(md5sum >)"
# f"cpio -o -H ustar -0' | cat > {node.dest}/{filename}.tar",
shell=True,
check=True
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment