Skip to content

Ignore directory during build/publish #3211

Closed Answered by justinmayer
mpaglia0 asked this question in Q&A
Discussion options

You must be logged in to vote

Based on what you have explained, I assume you are using the default Rsync behavior of invoke publish, which does indeed delete all files and folders on the remote system that are not present on the local system. After doing some research about protecting files/folders from Rsync's delete behavior, I suggest that you edit the publish task in your tasks.py file and add the following to the rsync invocation:

--filter 'protect /remote-directory-to-keep/'

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@justinmayer
Comment options

@mpaglia0
Comment options

Answer selected by mpaglia0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3210 on October 24, 2023 06:57.