Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Require option to NOT --delete-first

RyeNCode December 30, 2019

Require flag or option to disable --delete-first from the mirror command sent to lftp.


master deploy is to root of web-dir

/ <-- here

test is to subdir

/test/ <-- here

master deploy, due to --delete-first clears the /test/ directory

I did not find an obvious solution at

src ref: line 40


1 answer

1 accepted

1 vote
Answer accepted
Viktoriia Kozopas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2020

Hi @RyeNCode ,
In a new version of ftp-deploy: 0.3.0 we added DELETE_FLAG variable to make --delete-first optional. To disable --delete-first flag you may write:

  - pipe: atlassian/ftp-deploy:0.3.0
      USER: my-ftp-user
      REMOTE_PATH: /tmp/my-remote-directory
      LOCAL_PATH: /my-working-directory,
      DELETE_FLAG: 'false'

Please notice that the default value of DELETE_FLAG is true - to leave the previous logic for those who already use the pipe.

If you have any questions or suggestions - feel free to leave it, we are always grateful for the feedback.

RyeNCode January 17, 2020

Awesome, thank you for the quick turn around on this @Viktoriia Kozopas !

Christopher Smit April 17, 2023

Hi @Viktoriia Kozopas 

Is there a way to use the `DELETE_FLAG`, but exclude certain directories from being deleted?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events