The cycle of download and move


My cluster has two nodes:

​ node_1: Public IP, small disk space;

​ node_2: Private IP, large disk space;

So, I need to download files on node_1 and move all of them to node_2 at intervals.


  1. After enough large files are downloaded, I just move them to node_2;

  2. Copy files’ attributes to node_1

    cp -r --attributes-only <node_1_directory> <ndoe_2_directory>
  3. Download again by -nc option on node_1:

    wget --no-check-certificate -nc -e robots=off -r -l inf -np -R .html,.tmp -nH --cut-dirs=3 --header "Authorization: Bearer <APP_KEY>" -P ./
  4. Delete empty fiels:

    find . -type f -empty -delete
  5. Repeat 1-4……

Powered by Hexo and Hexo-theme-hiker

Copyright © 2013 - 2019 Dreambooker All Rights Reserved.

UV : | PV :