FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

NEW FEATURE: Option to never delete when syncing

Open AliAyub007 opened this issue 5 years ago • 13 comments

Hello, Is there any option to choose if I don't want to delete the files from server?

If any file is updated it should update but if any file is missing in repo I don't it to be deleted on server.

Plus one more question that how to exclude but not delete from server.

AliAyub007 avatar Dec 07 '20 09:12 AliAyub007

@SamKirkland Any guidance on these questions?

AliAyub007 avatar Dec 08 '20 08:12 AliAyub007

I tested to exclude files but it deleted the files on server even being in exclude list.

AliAyub007 avatar Dec 08 '20 08:12 AliAyub007

when file deleted from git its not deleting from ftp server..

milan-sahana avatar Dec 08 '20 10:12 milan-sahana

@AliAyub007 I can look into adding a option to never delete files and instead only upload/edit. This is not possible right now and I have no timeline on when I will add this feature.


@milan-sahana that sounds like another issue. Can you please make a new issue with more information on what your are seeing & recreation steps.

SamKirkland avatar Dec 11 '20 05:12 SamKirkland

+1 for update/edit

Rai-Rai avatar Jan 07 '21 19:01 Rai-Rai

I want this function too. This is a necessary feature for JAMStack architecture that is updated on a basis.

utautattaro avatar Mar 25 '21 02:03 utautattaro

Hi @SamKirkland, is there any update to this feature? Cuz I need it too ^^

I have 2 repositories deployed to one hosting server via FTP. While one app is being deployed to the remote server, it deletes the published folders of the other one.

Sarah-Alkibsi avatar Dec 08 '21 08:12 Sarah-Alkibsi

+1

afbora avatar Dec 29 '21 15:12 afbora

+1

heinrich-foto avatar Jun 07 '22 22:06 heinrich-foto

+1

AllinolCP avatar Oct 04 '22 06:10 AllinolCP

+1

Kacper1263 avatar Apr 08 '23 10:04 Kacper1263

Hey @SamKirkland,

There is a PR that aims to achieve this functionality and it's still waiting to be approved. https://github.com/SamKirkland/ftp-deploy/pull/20. Afterwards I know that some changes have to be applied to this repository. We can contribute to add this functionality to be able to pass new options to ftp-deploy

atakilic avatar Jun 15 '23 09:06 atakilic