-
Notifications
You must be signed in to change notification settings - Fork 9
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
I have written a new callback (example of advanced usage) #7
Comments
Dear @fpoto , Thanks a lot for your contribution. We will take this into account while restructuring our documentation. |
Just for the record, since I sent the code one year ago, I have kept using it every night without problems. For me, the code is stable. If anyone has suggestions, I'd be glad to hear from them. |
Hello Francesco, Can you please add some more description. It is not clear to me what your script is doing (and I hate to read bash/sh) and why it should be added as an example script. The question is if your script is a helpful example for other users. My first impression is that it is quit complex for an "example" and that it is doing much more then just one thing. |
Basically it is just a wrapper around a night backup called by cron or a manual backup invoked by the gui. If the backups are kept on a separate partition which is only mounted at backup time, it checks whether it is already mounted and mounts it otherwise, remounts it read-only when it's finished, checks the filesystem and computes the total space used by the backup and the remaining space on the file system Checks for several errors, including out-of-memory, and reports them on the log of what's happened (mounting, space available before and after backup, possible errors, unmounting). When called from cron, it emits logging info on the standard output, which cron then emails to the caller. That's it. If you want, I can write down a more formal list of features and usage. |
Thank you for your reply. I would say your script is not a "regular" example usable for Back In Time (BIT) beginners to learn how user-callback works. It is to complex for this. btw: I'll soon migrate the user-callback docu and the example scripts into bit-team/backintime repo. |
I think my script is not an example for beginners, but a generic complete callback that is really usable in practice by anyone without modification.
What it does:
- supports backup on a dedicated partition that is normally unmounted
- creates a log of the backup including errors and space used
- when run by cron sends the log by email
It is a real-world example which is usable in practice as it is, but I would not call it advanced.
I hope I'll find the time to improve the documentation. Maybe for a start the above explanation would be better than nothing.
Thank you for caring about BIT and my contribution
…--
Francesco Potortì (ricercatore) ISTI - CNR, Pisa, Italy
Web: http://fly.isti.cnr.it Skype: wnlabisti
Mobile: +39.348.8283.107 also Telegram, and even Wa
|
Thank you very much for your efforts. I am migrating the user-callback docu und examples into "backintime" repo. I will close the issue and setting its repo into "archive mode" in the foreseen future. I would suggest that you open a PR or Issue with your improved script. Might it be an idea to integrate it directly into the documentation instead of adding it as an example script beside the others? It would be nice if you could rethink your license of that code. We will use your script in the documentation and/or as an example. Other users might use it or just code snippets of it. Or they use at as in inspiration for their own scripts. With all respect to your work I won't like to bother users with (complex) licensing stuff. A regular user might be insecure about if he/she is allowed to use that code or not. And a user also might not be willing to dive into the topic about licensing to answer this question to him/herself. Otherwise it is no big deal if you like to stick to AGPL. This won't be a blocker. Best, |
user-callback.txt
Starting from the code I found here as inspiration, I rewrote it and added some things. I have used it every night for six months now and kept improving and debugging it. Should I post it here as a new file? Make a pull request?
The text was updated successfully, but these errors were encountered: