Support

Akeeba Backup for Joomla!

#28816 Command Line Backup

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by duanemitchell on Monday, 04 December 2017 15:29 CST

duanemitchell
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

I have cron jobs to backup my sites monthly and move them to Amazon S3. I get an email report following the backup. It works fine but here is a suggestion. Include the domain name somewhere in the report.

I use strong security. My cPanel names are never related to the domain name. They are cryptic. So when I get a bunch of reports on the first day of each month I can't tell what domains are reporting in as having been backed up. I'd like to be able to read the domain name and then I can figure if there are any domains missing.

No further action is needed on this. Thank you.

Duane Mitchell

nicholas
Akeeba Staff
Manager
We cannot do that since these emails are sent by cPanel, not us. They simply contain the output of the command line backup script. You can, however, very easily include any custom information you please in those emails.

Just prepend your CRON command line with
echo "Your custom message goes here";

(do not forget to include the message in double quotes and follow the closing double quote by a semicolon and a space).

Example

If your current CRON command line is
/path/to/php /home/asdfasdf/public_html/cli/akeeba-backup.php

change it to read
echo "Backing up http://www.example.com"; /path/to/php /home/asdfasdf/public_html/cli/akeeba-backup.php

Now the first line of the email message will read
Backing up http://www.example.com


Practical uses

Since this is free form text you can add a number of keywords. You can match these keywords in mail filters or something like Microsoft Flow. The latter allows you to automate actions. For example, if you receive an email for the backup of site X that has an error you can get a push notifications on the mobile phones of the entire team that's responsible for backups.

I hope this information helps!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

duanemitchell
Perfect! This works! Thank you so much. It sure does help me to figure out if all my cronjob backups worked.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!