<div dir="ltr">Hi -- I've been using BB for about 3 years -- Simple setup which I use as a cron script to backup Laptop to NAS server.  Everything working great so far.<div>I recently discovered Vorta for BorgBackup and I really like the interface.  I'm not sure how long this tool has been available however I'm in the process of testing this as an alternative to MacBook's Time Machine.  </div><div><br></div><div>Looking at my bash old script which I composed several years ago, I often ran the borg break-lock command prior to borg create command -- Here is snippet:</div><div><br></div><div>REPOSITORY="ssh://<user>@freenas/~/backup/borg/borgMacBookKMH-FreeNAS"<br>OPTIONS="--progress --debug --stats --compression lzma,9 --exclude-caches"<br>#Ive taken out the --progress option when run in a cron job<br>export BORG_PASSPHRASE="****"<br><br>borg break-lock $REPOSITORY<br><br>borg create $OPTIONS $REPOSITORY::`hostname`-`date +%Y-%m-%d--%H:%M:%S` \<br>  /Users/<user> \<br>  --exclude '*/.cache/*' \<br>  --exclude '*/.Cache/' \<br>  --exclude '*/.Trash/' \<br></div><div> ...</div><div>....</div><div><br></div><div>I remember having to add this break-lock command since when I was composing this script several years ago, the script would hang either due to a network issue or ssh issue or some other issue. After hanging, the repository would be locked and subsequent cron jobs running the script wouldn't actually backup anything.  </div><div><br></div><div>There also seems to not be any return code for this function -- or maybe I'm not seeing it when it runs with success -- like a zero.</div><div><br></div><div>My questions are as follows:</div><div>1. Does borg break-lock return 0 on success?</div><div>2. Do I still require this statement with newer borg versions? I'm currently running version 1.1.10 </div><div>3. Vorta has an option that I can run Pre Backup Command -- but requires a return code of 0 to proceed with the borg backup command.  I was thinking of running the break-lock command here, however when trying this particular method, the program notifies me it receives a non-zero return code.  </div><div>4. Maybe I'm just doing things incorrectly.  I'm open to comments.</div><div><br></div></div>