Initial commit

This commit is contained in:
Ryan
2023-05-08 17:57:52 +00:00
commit 194457e662
8 changed files with 171 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
export SUBDIRS="ftp_images ftp_highres_images"
export HOST
for d in $SUBDIRS
do
export LOCALDIR="$WEBROOT/images/$d"
export REMOTEDIR="/$d/rsr_number"
echo "Copy '$RSR_FTP_HOST:$REMOTEDIR' to '$LOCALDIR'"
lftp -c "set ftp:ssl-auth TLS;
open ftp://$RSR_USER:$RSR_PASS@ftps.rsrgroup.com:2222;
mirror --verbose --only-missing $REMOTEDIR $LOCALDIR"
done
find $WEBROOT/images | perl -pe 's/^\/var\/www//' | sort > $WEBROOT/images.txt