LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2015, 01:01 PM   #1
ra93013
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
lftp no empty directory options does not work


I can't get lftp --no-empty-dirs mirror options to work. I'm running version 4.0.9

lftp -c "set xfer:log 1;
debug -o ${LOG} level ${ERROR_LEVEL};
open sftp://$USER:$PASS@${SERVER };
lcd $LCD;
cd $RCD;
set mirrorrder *.txt* *.bin* ';
mirror --verbose --no-empty-dirs --newer-than=${TOUCH_FILE} \
--include='[G|M][0-1][0-9]_(MGS_|GSP_|GSPO|VIB_|FAT_)[0-9]{12}\.ser' \
--include='[G|M][0-1][0-9]_(MGS_|GSP_|GSPO|VIB_|FAT_)[0-9]{12}\.sr2' \
--exclude ada/ \
--exclude bin/ \
--exclude temp/ \
--exclude files/hostaddr \
--exclude files/2002_archives ; bye;
 
  


Reply

Tags
lftp, lftp sysntax


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lftp mirror: Access failed: 550 /var/www/vhosts/test: No such file or directory speedy6 Linux - Software 11 10-22-2012 02:06 PM
rm: cannot remove directory `ff': Directory not empty blancs Linux - General 17 08-29-2011 01:47 PM
Struggling to make LFTP work jdw52 Linux - Software 2 06-04-2009 07:45 AM
Empty a directory fhsm Linux - Newbie 3 04-16-2009 11:19 PM
The postgresql data directory content in the pgsql directory is lost (empty data dir) kisembo Linux - Software 1 02-13-2006 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration