diff --git a/asci_to_vault.py b/asci_to_vault.py index 9433c0f7f4abfe25dd83eed5ad47ce3e0fa9e572..052bd10660db474af6840e24b89c883b81f87dab 100644 --- a/asci_to_vault.py +++ b/asci_to_vault.py @@ -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 )