Sincronizzazione di una directory ftp remota con lftp

From RVM Wiki
Revision as of 12:03, 26 January 2010 by Gabriele.vivinetto (talk | contribs) (New page: Per mantenere il mirror di una directory remota via ftp: <pre> HOST="test.gabrielevivinetto.it" USER="username" PASS="password" LCD="/home/Documenti/www/oia" RCD="/html/oia" lftp -c "set ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Per mantenere il mirror di una directory remota via ftp:

HOST="test.gabrielevivinetto.it"
USER="username"
PASS="password"
LCD="/home/Documenti/www/oia"
RCD="/html/oia"
lftp -c "set ftp:list-options -a;
open ftp://$USER:$PASS@$HOST; 
lcd $LCD;
cd $RCD;
mirror --reverse \
	--delete \
	--verbose \
	--exclude-glob .svn/ \
	--exclude-glob carica-produzione.sh \
	--exclude-glob config_test* \
	--exclude-glob test*"

Riferimenti