You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Require flag or option to disable --delete-first from the mirror command sent to lftp.
scenario:
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 http://manpages.ubuntu.com/manpages/trusty/en/man1/lftp.1.html
src ref: https://bitbucket.org/atlassian/ftp-deploy/src/master/pipe/pipe.sh line 40
Thanks,
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:
script: - pipe: atlassian/ftp-deploy:0.3.0 variables: USER: my-ftp-user PASSWORD: $FTP_PASSWORD SERVER: 127.0.0.1 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way to use the `DELETE_FLAG`, but exclude certain directories from being deleted?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.