LFTP Mirroring


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users LFTP Mirroring
# 1  
Old 07-21-2008
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 "/".
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error with LFTP

I use below ftp command to push the file from UNIX server to Mainframe system. (lftp -d -e "set ftp:passive-mode false; put -a ${SPOOLFILE} -o ${FNAME}; exit" -u ${id},${paswd} ${host} ) >> $ftplog To ftp the file successfully i need to get the out put for FNAME as "'filename'" (double... (5 Replies)
Discussion started by: zooby
5 Replies

2. Shell Programming and Scripting

Lftp command

Hello, I am trying to write a script that will lftp a file. The parameters are being passed in to the script from ETL tool. The put command is not working. put $file_name $tgt_file_name in the function ftpfile(). When I hardcode the file name with path its working. can some one help me... (5 Replies)
Discussion started by: skatpally
5 Replies

3. Shell Programming and Scripting

lftp is not working.how to replace lftp with expect utility using same .cfg file.

We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other. Below command to not working. lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies

4. UNIX for Dummies Questions & Answers

Lftp operation

dear all, I need to get files from ftp when only files consist of words 'EUROPE' ftp sources in folder /ftp1/ftp2/ftp3/201409 files inside /ftp1/ftp2/ftp3/201409is as below 201409_EUROPE_citizen.txt 201409_EUROPE_natality.txt 201409_EUROPE_occupancy.txt 201409_ASIA_citizen.txt... (1 Reply)
Discussion started by: radius
1 Replies

5. Red Hat

Lftp issue

I installed KVM and configured two virtual machines in it server1.example.com(192.168.100.193) and tester1.example.com(192.168.100.230).I want to access server1.example.com from tester1.example.com over lftp.As far as networking is concerned between both I do have some doubts. I tried ping and... (5 Replies)
Discussion started by: shazgaurav
5 Replies

6. Shell Programming and Scripting

Lftp with dialog

Hi all. I want to know, if there is any chance to pass lftp listing to CLI dialog. I want to make an interactive CLI ftp manager, based on lftp. Version of dialog I use: root@dlink:~# dialog -v cdialog (ComeOn Dialog!) version 1.1-20100428 (0 Replies)
Discussion started by: n158
0 Replies

7. UNIX for Advanced & Expert Users

lftp connection issues

Hi guys, We are receiving fatal error while trying to use lftp client to connect to an external server using ftps protocol. It seems to connect but when I issue 'ls' command, it fails with below error: $ lftp -u user,pwd ftps://<URL>:990/Submit lftp user@URL:~> ls ls: Fatal error:... (0 Replies)
Discussion started by: nice_chapp
0 Replies

8. UNIX for Advanced & Expert Users

lftp: Option to lftp a file, wait and download a file as soon as its created

Please let me know what is lftp options combination to wait and download a file from target as soon as its gets created. I tried with different options but not able to get it working as I need any help would be appreciated (4 Replies)
Discussion started by: bmkux
4 Replies

9. Shell Programming and Scripting

lftp, get file list

hello I need script which give me file list from server (4 Replies)
Discussion started by: stahoo23
4 Replies
Login or Register to Ask a Question
SVK::Help::Intro(3)					User Contributed Perl Documentation				       SVK::Help::Intro(3)

NAME
SVK::Help::Intro - Introduction to svk DESCRIPTION
svk is an open source distributed version control system which is designed to interoperate with Subversion. Like other version control systems, it keeps track of each change you make to a project and allows you to maintain multiple parallel tracks of development. svk also has a number of powerful features which are rarely found in other version control systems. svk has been designed from the ground up to support development models that are simple and intuitive for software developers. It has advanced smart branching and merging semantics that make it easy to maintain multiple parallel lines of development and painless to merge changes across branches. svk's built in patch manager makes it easy for non-committers to share changes among themselves and with project maintainers svk provides powerful support for distributed development. Every svk client is capable of fully mirroring remote Subversion repositories so that you have full access to a project's history at any time, even when they are off the network or on the wrong side of a firewall. You can branch a remote project at any point in that project's history, whether or not you have write access to that project's repository. Later, you can integrate changes from the project's master server (usually with a single command) or push your branch up to another Subversion repository. GETTING STARTED
svk has a rich command line interface that can be somewhat daunting at first. the following few commands are all you'll need for day to day operation. svk mirror First, you'll need to mirror a remote repository. This sets up a local copy of that repository for you to branch from, merge to and otherwise poke at. The local path is sometimes called a "depot path." svk mirror svn://svn.example.com/project_x //mirror/project_x svk sync When you've set up a new mirror or want to get some work done without a network connection, sync your local repository with upstream repositories. svk sync //mirror/project_x svk checkout When you want to get some work done, you can checkout a working copy to make changes. cd ~/svk-checkouts svk co //mirror/project_x If you want to work offline, you can create a local branch cd ~/svk-checkouts/project_x svk branch --offline svk add, svk delete and svk move As you work on the files in your working copy, feel free to add new files, delete existing files and move files around. cd ~/svk-checkouts/project_x svk add Changelog svk move badly_named_file.c well_named_file.c svk delete .README.swp svk commit When you're done, just commit your changes to your local repository, whether or not you have network. If you commit to a mirrored path, rather than a local branch, you'll need to be able to access the path's upstream subversion server, but the commit will be sent to the server instantly. svk commit svk pull Life doesn't stop when you make a local branch. From time to time, pull down changes from the upstream repository. cd ~/svk-checkouts/project_x svk pull svk push When you're ready to share your changes with the world, push them to the upstream repository. cd ~/svk-checkouts/project_x svk push To see a full list of svk's commands, type "svk help commands". For help with a specific command, just type "svk help command". The svk wiki (<http://svk.bestpractical.com>) is a great place to find the latest svk tips, tricks and updates. If you run into trouble using svk, the wiki's the right place to start looking for help. perl v5.10.0 2008-09-13 SVK::Help::Intro(3)