The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
lftp 3.7.3 (Default branch) iBot Software Releases - RSS News 0 05-26-2008 06:20 PM
lftp, get file list stahoo23 Shell Programming and Scripting 4 04-15-2008 01:04 AM
lftp 3.7.0 (Default branch) iBot Software Releases - RSS News 0 03-13-2008 04:11 PM
lftp 3.6.3 (Default branch) iBot Software Releases - RSS News 0 01-28-2008 07:40 AM
lftp transmission error help Iversog UNIX for Dummies Questions & Answers 0 06-29-2006 08:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2008
Registered User
 

Join Date: Jul 2008
Posts: 1
LFTP Mirroring

LFTP Mirroring
We are planning to use lftp to mirror some of the files and
directories on to the remote server.

What we exactly want to do is mirror some of the directories and
exclude some of the the directories from "/" i.e. main root. . What
lftp is doing is mirroring all the directories. It seems the include
and exclude doesnt work properly.

The script that we are trying to run is as below:

HomeBackUpDir=/
RemotePath=/data/
lftp -u $RemoteUser,$RemotePass -e "mirror --dry-run --reverse
--delete -I '/home/*/web/' -I '/home/*/data/' -i
'/home/cla_backup/scripts/' -i '/etc/apache2' -X
'/home/*/data/lucene_data/' -X '*data/temp/*' -X '*backup/*' -X
'*templater_cache/*' --only-newer --ignore-time --verbose=4
$HomeBackUpDir $RemotePath" $RemoteHost

What we intend to do is to mirror
/etc/apache2/
in the home/ directory wherever there is a web/ directory mirror that
in the home/ directory wherever there is a data/ directory mirror that
/home/cla_backup/scripts

Exclude:
in the home/ directory wherever there is a data/lucene_data/
/data/temp/
backup/
templater_cache/


The above script tries to mirror even directories like /dev, /proc and
all other directories that are present in "/".
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0