Support

Akeeba Backup for Joomla!

#41002 configure "Schedule Automatic Backups" on IIS

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
5.1.2
PHP version
8.20
Akeeba Backup version
9.9.5

Latest post by nicholas on Saturday, 10 August 2024 11:25 CDT

[email protected]

Greetings,

I am wondering what is the best practice / best way of configuring "schedule Automatic Backups" on IIS enviroment.
(as in all tutorials you only mention CRON and Linux enviroment)

I know that CRON = TaskSchaduler (Windows)

But the main question is which is the best sintax to automate the task? And How to do it for multiple web pages?

Thank you in advance for all your help,

nicholas
Akeeba Staff
Manager

CRON jobs are Scheduled Tasks on Windows, indeed.

We really don't have any tutorials, except a video tutorial. That one only talks about CRON jobs on cPanel hosts which is what the overwhelming majority of people in need of a video tutorial use.

The documentation is universal, for Linux, macOS, and Windows. I know because I wrote it, using all three OS to make sure the instructions make sense.

Using Windows' Task Scheduler is fairly trivial.

Create a Basic Task.

Choose a trigger, e.g. Daily.

For Action you should use Start a program.

In the Program/script you need to select your PHP executable, e.g. C:\PHP\8.3\php.exe. The exact path will obviously be different, as it depends on where you've installed PHP. Please make sure that you are using the php.exe binary (that's the PHP CLI binary), NOT the php-cgi.exe.

As for the arguments, please check our documentation or, better yet, the Schedule Automatic Backups page of the interface. It will be something like D:\Sites\foobar\cli\joomla.php akeeba:backup:take --profile=2. Basically everything that follows after the path to PHP in the documentation and our user interface.

Do note that Windows' Task Scheduler is very often a weirdo. The next backup may not be on the same day you set the scheduled task, but one day later. I have no idea why it does that. It's driving me crazy every time I need to test anything on Windows.

As to how to do this for multiple sites, the answer is that you create a scheduled task per site and scheduled backup. Yes, it's annoying, like everything systems management on Windows.

Note: our support will be closed until August 19th.

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!

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!