Clean up old files on server when deploying #104500

Open
opened 2023-06-26 15:46:35 +02:00 by Julian Eisel · 4 comments
Member

The manual deployment from the buildbot uses rsync to copy files to the server. When doing that it doesn't delete old/unused files there, it only copies new or modified files to the destination.

rsync has the --delete option that should help here. From the rsync man-page:

--delete delete extraneous files from dest dirs

https://www.man7.org/linux/man-pages/man1/rsync.1.html

The new devdocs deployment follows the manual, and this has caused some issues. Would be good to address this for both.

The manual deployment from the buildbot uses `rsync` to copy files to the server. When doing that it doesn't delete old/unused files there, it only copies new or modified files to the destination. `rsync` has the `--delete` option that should help here. From the `rsync` man-page: > --delete delete extraneous files from dest dirs _https://www.man7.org/linux/man-pages/man1/rsync.1.html_ The new _devdocs_ deployment follows the manual, and this has caused some issues. Would be good to address this for both.
Julian Eisel changed title from Clean up unused files on server while deploying? to Clean up unused files on server when deploying? 2023-06-26 15:46:44 +02:00
Member

@JulianEisel can you provide any update here? Has the developer docs used this yet?

@JulianEisel can you provide any update here? Has the developer docs used this yet?
Author
Member

Opened a pull request for this in the buildbot/devops repository.

Opened a pull request for this in the buildbot/devops repository.
Julian Eisel changed title from Clean up unused files on server when deploying? to Clean up unused files on server when deploying 2024-01-29 15:24:05 +01:00
Julian Eisel changed title from Clean up unused files on server when deploying to Clean up old files on server when deploying 2024-01-29 15:24:15 +01:00
Member

Any update on that PR?

Any update on that PR?
Author
Member

For the developer documentation the files are now deleted, for the manual @brecht noticed it would also delete other files, I think stuff like the zip archives of the manual. So some more work will be needed there I’m afraid.

For the developer documentation the files are now deleted, for the manual @brecht noticed it would also delete other files, I think stuff like the zip archives of the manual. So some more work will be needed there I’m afraid.
Aaron Carlisle added
Status
Confirmed
and removed
Status
Needs Information from Developers
labels 2024-03-04 22:01:51 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#104500
No description provided.