diff --git a/asci_to_vault.py b/asci_to_vault.py index 555ec60a8bd95fe93bde02da7834a80c1776b0e4..6ea0cfe3a5fa4d3830b90b0115fdac6765da958e 100644 --- a/asci_to_vault.py +++ b/asci_to_vault.py @@ -105,7 +105,7 @@ def send_directory(node, remote_login, src_path): # Check if there are any files in the node. with Connection(remote_login) as c: files = c.run( - rf"cd {node.src}; find -maxdepth 1 -type f -printf '%f\n'", + rf"cd {node.src}; nice find -maxdepth 1 -type f -printf '%f\n'", echo=True ) files = files.stdout.strip() @@ -135,7 +135,7 @@ def send_directory(node, remote_login, src_path): output = subprocess.run( f"ssh {remote_login} 'cd {node.src};" - f"find -maxdepth 1 -type f -print0 |" + f"nice find -maxdepth 1 -type f -print0 |" f"cpio -o -H ustar -0' | cat > {node.dest}/{filename}.tar", shell=True, check=True diff --git a/md5_to_vault.py b/md5_to_vault.py index 71eae38d2693d1f9be2f0a910b592449e188c5fb..2ed659ee3c54c693adcf6b29ac0c530152099fee 100644 --- a/md5_to_vault.py +++ b/md5_to_vault.py @@ -102,7 +102,7 @@ def send_checksum(node, remote_login, src_path): filename = node.src.replace(src_path+'/', '').replace('/', '_') output = subprocess.run( - f"ssh {remote_login} 'cd {node.src}; md5sum *'" + f"ssh {remote_login} 'cd {node.src}; nice md5sum *'" f"| cat > {node.dest}/{filename}.md5", shell=True, check=True