Created
September 28, 2021 14:34
-
-
Save philippemiron/cfad67912bb27798d1ed6ea3ee94f63b to your computer and use it in GitHub Desktop.
sync_gdp_hourly.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
REMOTE_GDP_PATH=/phod/pub/lumpkin/hourly/v1.04/netcdf | |
LOCAL_GDP_PATH=/YOUR/LOCAL/PATH/ | |
# declare folders list | |
declare -a folders=("argos_block1" | |
"argos_block2" | |
"argos_block3" | |
"argos_block4" | |
"argos_block5" | |
"argos_block6" | |
"argos_block7" | |
"argos_block8" | |
"gps" | |
) | |
# synchronize each of the folders | |
for folder in "${folders[@]}" | |
do | |
lftp ftp.aoml.noaa.gov -e "mirror -e --ignore-time $REMOTE_GDP_PATH/$folder $LOCAL_GDP_PATH/$folder; quit" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment