![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
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 10:20 PM |
| lftp, get file list | stahoo23 | Shell Programming and Scripting | 4 | 04-15-2008 05:04 AM |
| lftp 3.7.0 (Default branch) | iBot | Software Releases - RSS News | 0 | 03-13-2008 07:11 PM |
| lftp 3.6.3 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-28-2008 10:40 AM |
| lftp transmission error help | Iversog | UNIX for Dummies Questions & Answers | 0 | 06-29-2006 12:02 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 "/". |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|