How to enable back up notification in community edition
-
You need to enable and configure the
backup-reports
andtransport-email
plugin under setting - plugins.backup-reports
just needs the recipient mail address.transport-email
needs the mail service connection settings in the transport section (you get this settings from your mail provider) and a valid sender mail address.When you configure a backup job, you can then choose when you want to receive a notification (settings block bottom left). Settings are self explanatory (Always vs. Failure). That's it and I hope it helped.
-
If the plugins aren't visible under Settings > Plugins, then you'll need to "install" them, which involves creating some symlinks so that XO will load them. See this prior discussion for details --
https://xcp-ng.org/forum/topic/2125/xo-from-source-and-plugins-installation-solved
-
@Danp Thank you. I Googled and saw that link you shared. However, it doesn't discuss how I can install those plug-ins to begin with. It seems to assume that the plugins are there, or not already. But when I run the symlink, it doesn't work. Sorry if this is not completely obvious to me right now.
-
@okynnor You'll need to tell us how you installed XO. Did you manually follow the recommended procedure or did you use a 3rd party script?
Also, expand on "doesn't work". Show us the commands you used to create the symlinks and the resulting console output. Did you restart XO afterwards? Did XO attempt to load the plugin? Were there any errors shown in the log? Etc.
-
@Danp I used a third party script.
-
@okynnor You can't expect me to put in more effort to solve your issue than you. Right now it feels like I'm pulling teeth when trying to get details from you.
I used a third party script
I shouldn't have to ask, but which one?
Also, you didn't address any of the items in my 2nd paragraph
-
I used this script to install XO:
https://github.com/ronivay/XenOrchestraInstallerUpdaterI did reboot the server after trying the following commands:
sudo npm i xo-server-backup-reports
[sudo] password for ronny:
npm WARN saveError ENOENT: no such file or directory, open '/home/ronny/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/ronny/package.json'
npm WARN ronny No description
npm WARN ronny No repository field.
npm WARN ronny No README data
npm WARN ronny No license field.- xo-server-backup-reports@0.16.0
added 7 packages from 10 contributors and audited 22 packages in 2.115s
found 3 low severity vulnerabilities
runnpm audit fix
to fix them, ornpm audit
for details
ronny@xo-ce:~$ sudo npm install
npm WARN saveError ENOENT: no such file or directory, open '/home/ronny/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/ronny/package.json'
npm WARN ronny No description
npm WARN ronny No repository field.
npm WARN ronny No README data
npm WARN ronny No license field.audited 31 packages in 0.519s
found 3 low severity vulnerabilities
runnpm audit fix
to fix them, ornpm audit
for detailsāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā®
ā ā
ā New patch version of npm available! 6.13.4 ā 6.13.7 ā
ā Changelog: https://github.com/npm/cli/releases/tag/v6.13.7 ā
ā Run npm install -g npm to update! ā
ā ā
ā°āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāÆronny@xo-ce:~$ npm install -g npm to update!
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /home/ronny/.npm/_cacache/tmp/ee1c2dee
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1000 "/home/ronny/.npm"
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /home/ronny/.npm/_cacache/tmp/649b30c3
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1000 "/home/ronny/.npm"
ronny@xo-ce:~$I didn't follow with the symlink as per your suggested URL because of the errors above. There was no point right?
- xo-server-backup-reports@0.16.0
-
@okynnor said in How to enable back up notification in community edition:
I used this script to install XO:
https://github.com/ronivay/XenOrchestraInstallerUpdaterDid you notice the README.md? It explains how to use the script and how to have it install the plugins for you.
sudo npm i xo-server-backup-reports
This may have been correct at one time, but I don't believe that will work any longer. @julien-f Are these even kept up-to-date?
I didn't follow with the symlink as per your suggested URL because of the errors above. There was no point right?
The source files are pulled in by the script and then it creates the symlinks for the plugins that you designate.
-
@Danp said in How to enable back up notification in community edition:
Are these even kept up-to-date?
No, they are not kept up-to-date, please install them from the sources
-
@Danp That's perfect. All plugins are installed and running. Thank you for pointing that out. Should have. Could have.