Menu

#21 grsync-batch fails to respect "Halt on failure" option

v1.0 (example)
closed-fixed
None
5
2023-08-14
2021-09-24
sillyrat
No

Hello! I am running Grsync 1.3.0 on Manjaro Linux. I use Grsync to back up files from a remote server. On the "Extra options" tab, I have specified a script to run before rsync: the script creates a sshfs connection to the remote server and checks that the local mount-point is not empty to verify that connection has succeeded; and the "Halt on failure" box is checked so that rsync will not run if the local mount-point is empty (which would wipe out the local copy). This all works as expected when run from within Grsync. However, when this is run from grsync-batch, the "Halt on failure" option is not respected -- meaning that in the event of a failure to connect to the remote server, my entire local backup is erased because the local backup is synced with an empty mount-point folder. While I have been running grsync-batch from a crontab entry, the same unwanted behavior occurs if I run grsync-batch directly in a terminal.

Discussion

  • Piero Orsoni

    Piero Orsoni - 2021-11-02
    • status: open --> accepted
    • assigned_to: Piero Orsoni
     
  • Piero Orsoni

    Piero Orsoni - 2021-11-02

    Hello,

    Thanks for the report.
    grsync-batch is probably a bit behind compared to the GUI, I will review the features and fix this.

    Cheers!

     
  • Piero Orsoni

    Piero Orsoni - 2023-08-14
    • status: accepted --> closed-fixed
     
  • Piero Orsoni

    Piero Orsoni - 2023-08-14

    Added support for the missing halt on failure option to the batch script.
    Will push today and release along with 1.3.1 ASAP.
    Thanks!

     

Log in to post a comment.