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

delete source tar if transfer is successful only #973

Merged
merged 3 commits into from
Oct 26, 2023
Merged

delete source tar if transfer is successful only #973

merged 3 commits into from
Oct 26, 2023

Conversation

amg-web
Copy link
Contributor

@amg-web amg-web commented Jun 26, 2023

Description

current script removes tar even if transfer failed. using rsync option we have possibility to remove source in case transfer is successful only. if failed we can transfer failed tars later.

Testing Steps

make test record with disconnected shared storage or temporary disabled destination.
<meeting_id.tar> file should stay in work_dir: /var/bigbluebutton/recording/scalelite

if destination is available tar file is not present in work_dir: /var/bigbluebutton/recording/scalelite after transfer.

current script removes tar even if transfer failed.
using rsync option we have possibility to remove source in case transfer is successful only.
if failed we can transfer failed tars later.
@Ithanil
Copy link
Contributor

Ithanil commented Oct 19, 2023

We are using an almost identical patch since ages in production. I hope the PR gets merged at some point.

@farhatahmad farhatahmad merged commit 013d5e3 into blindsidenetworks:master Oct 26, 2023
1 check passed
farhatahmad added a commit that referenced this pull request Jun 27, 2024
* delete source tar if transfer is successful only

current script removes tar even if transfer failed.
using rsync option we have possibility to remove source in case transfer is successful only.
if failed we can transfer failed tars later.

* Update scalelite_post_publish.rb

---------

Co-authored-by: Ahmad Farhat <[email protected]>
Co-authored-by: Ahmad Farhat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants