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.
Awesome, thank you for the quick turn around on this @Viktoriia Kozopas !
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.