Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW FEATURE: Option to never delete when syncing #141

Open
AliAyub007 opened this issue Dec 7, 2020 · 13 comments
Open

NEW FEATURE: Option to never delete when syncing #141

AliAyub007 opened this issue Dec 7, 2020 · 13 comments
Labels
enhancement New feature or request

Comments

@AliAyub007
Copy link

AliAyub007 commented Dec 7, 2020

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
Copy link
Author

@SamKirkland Any guidance on these questions?

@AliAyub007
Copy link
Author

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

@milan-sahana
Copy link

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

@SamKirkland SamKirkland added the enhancement New feature or request label Dec 11, 2020
@SamKirkland
Copy link
Owner

@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.

@Rai-Rai
Copy link

Rai-Rai commented Jan 7, 2021

+1 for update/edit

@utautattaro
Copy link

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

@SamKirkland SamKirkland changed the title Option to choose not to delete files on server NEW FEATURE: Option to never delete when syncing Oct 11, 2021
@Sarah-Alkibsi
Copy link

Sarah-Alkibsi commented Dec 8, 2021

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.

@afbora
Copy link

afbora commented Dec 29, 2021

+1

3 similar comments
@heinrich-foto
Copy link

+1

@AllinolCP
Copy link

+1

@Kacper1263
Copy link

+1

@atakilic
Copy link

Hey @SamKirkland,

There is a PR that aims to achieve this functionality and it's still waiting to be approved. SamKirkland/ftp-deploy#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

@luke-cnnect
Copy link

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 I know this is quite old by now, but I was in the same position and was able to achieve this behaviour by giving two different names to the ftp-deploy-sync-state.json file. You can use the state-name property to define it yourself and then in each repo's yml actions file just name them differently, e.g. "ftp-deploy-sync-state-repo1.json" and "ftp-deploy-sync-state-repo2.json", afterward their states shouldn't interfere and you can deploy two repos to the same remote directory.

Hope it helps if anyone else finds themselves trawling through these issues and PRs xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests