Amcheck is used to verify that a backup will run, reporting issues by email.<br />
<br />
The -m parameter uses contact email address from the the general Amanda config file. The alternative -M allows the user to specify an address.<br />
<br />
On CentOS6, when I use '-m', the program works as expected (email arrives):<br />
----------<br />
-bash-4.1$ amcheck -m DailyBackup<br />
-bash-4.1$<br />
----------<br />
<br />
Using '-M' with an email address gives the following output:<br />
----------<br />
-bash-4.1$ amcheck -M <a href="mailto:user@domain.com">user@domain.com</a> DailyBackup<br />
Send options without primary recipient specified.<br />
Usage: mail -eiIUdEFntBDNHRV~ -T FILE -u USER -h hops -r address -s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS -S OPTION users<br />
amcheck: error running mailer /bin/mail: mailer exited with status 2<br />
-bash-4.1$<br />
----------<br />
<br />
So it looks like the '-M' causes amcheck to invoke /bin/mail with the arguments in the wrong order.
↧