Open ericlay opened 1 month ago
Hi @ericlay 😊
Do you have a link to the original script you use? It's a BorgBackup script, isn't it (I never use it) ?
Tell me what you'd like exactly, I didn't necessarily understand the meaning of your request ^^. Would you like me to include script generation in the setup wizard like I do for BorgMatic ?
Hi, thanks for the response.
It is the BorgBackup scipt, orginally, no need to stray there. Script generation in the setup wizard would be an awesome addition. Just like the Borgmatic example.
Along with that I provided my working example, maybe slightly opinionated :) in the logs and handling of the api calls. It could also be improved by using variables from the config block to setup the pruning schedule as well. However, just an example.
I've been using this version of the official automated backup script from the Borg docs for a little over a year. However, I recently started using BorgWarehouse. After refactoring the script, I thought it might be nice to contribute a more specific version for BorgWarehouse usage in the documentation.
The script itself stays fairly close to the OG except it keeps backup logs in the provided location, prunes logs with pruned archives and makes the two api calls to BorgWarehouse for the status and storage updates. It just needs the set up block filled out and it can work out the box. I would be happy if others contributed improvements in log verbosity, improved functionality or better integration with BorgWarehouse if possible too! (I am wondering if the repo uri "/./" ever changes?)
https://gist.github.com/ericlay/baec79bc5bccd0ce690ed088e77825ce