blindsidenetworks / scalelite

Scalable load balancer for BigBlueButton.
GNU Affero General Public License v3.0
465 stars 249 forks source link

delete source tar if transfer is successful only #973

Closed amg-web closed 8 months ago

amg-web commented 1 year ago

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.

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.
Ithanil commented 8 months ago

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