<jupyter_start><jupyter_text>Part 1: Go to external hard drive to mkdir<jupyter_code>extermal_hd = '/media/toshiba_4t'
target_folder = path.join(extermal_hd, 'ionic_effect')
print(f'cd {extermal_hd}')
print(f'mkdir {target_folder}')<jupyter_output>cd /media/toshiba_4t
mkdir /media/toshiba_4t/ionic_effect<jupyter_text>Part 2: Rsync command<jupyter_code>old_target = '/home/yizaochen/simulation/500mM' # Ad hoc
user = 'yizaochen'
server_ip = '192.168.3.11'
old = f'{user}@{server_ip}:{old_target}'
cmd = f'rsync -avzh {old} {target_folder}/'
print(cmd)
rsync -avzh yizaochen@192.168.3.11:/home/yizaochen/simulation/tat_21mer/bdna+bdna/md10_39xtc /home/ytcdata/simulation/tat_21mer/bdna+bdna<jupyter_output><empty_output><jupyter_text>Part 3: Check size to ensure the success of backup<jupyter_code># Server-end
print(f'cd {old_target}')
print(f'du -h')
# Local-end
print(f'cd {target_folder}')
print(f'du -h')<jupyter_output>cd /media/toshiba_4t/ionic_effect
du -h<jupyter_text>Part 4: Go to allostery to rm<jupyter_code>print(f'rm -r {old_target}')<jupyter_output>rm -r /home/yizaochen/simulation/500mM
{'fraction_non_alphanumeric': 0.14596554850407978, 'fraction_numerical': 0.03626473254759746, 'mean_word_length': 7.558139534883721, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '79927', 'license': 'MIT', 'n_tokens_mistral': 513, 'n_tokens_neox': 486, 'n_words': 74, 'path': 'notebooks/rsync_protocol.ipynb', 'repo_name': 'yizaochen/prepare_simulation', 'size': '1109'}