Initial commit
This commit is contained in:
Executable
+19
@@ -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
|
||||
Reference in New Issue
Block a user