Support

Akeeba Backup for Joomla!

#40941 Unable to create or copy profile by cli

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.3.8
Akeeba Backup version
9.9.4

Latest post by Romana02 on Friday, 19 July 2024 04:15 CDT

Romana02

Hello,

I am trying to create a new backup profile by cli with this command:

akeeba:profile:create --description="weekly"

but I get following response

The "description" argument does not exist.

If I try to copy the existing profile #1 by

akeeba:profile:copy --id="1" --description="Weekly backup profile"

I get

The "--id" option does not exist.

I have successfully set a filter to profile #1 by

akeeba:filter:exclude backup --root=[SITEROOT] --filterType=directories'

or set the output directory by

akeeba:option:set akeeba.basic.output_directory [SITEROOT]backup

so I think, I may understand the syntax. What is wrong with my commands to create or copy a profile?

 

Regarding this:

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 10MiB, please upload it on your server and post a link to it.

Does the cli generates a log file?

Kindly

Romana

nicholas
Akeeba Staff
Manager

There is a typo in the code of the akeeba:profile:copy, akeeba:profile:create, and akeeba:profile:modify commands. That's what is causing the problem you observed. Please download and install the dev release from here https://www.akeeba.com/download/akeebabackuppro-dev/9-9-5-dev202407171201-rev408c6f9.html 

As for the CLI, it does not produce a log, but running a command with -vvv at the end enables additional debugging output in case of an error.

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!

Romana02

Hello Nicholas,

thank You very much for the quick reply and fix.

I installed the dev version and the problem creating a profile by CLI disappeared, I can now create one.

But copying with (id as integer or as string)

akeeba:profile:copy --id=1 --description="Weekly backup profile 2" -vvv

still results in following:

In ArgvInput.php line 223:
                                                          
 [Symfony\Component\Console\Exception\RuntimeException]   
 The "--id" option does not exist.                        
                                                          

Exception trace:
 at /daten/vhosts/webservice4t/libraries/vendor/symfony/console/Input/ArgvInput.php:223
Symfony\Component\Console\Input\ArgvInput->addLongOption() at /daten/vhosts/webservice4t/libraries/vendor/symfony/console/Input/ArgvInput.php:150
Symfony\Component\Console\Input\ArgvInput->parseLongOption() at /daten/vhosts/webservice4t/libraries/vendor/symfony/console/Input/ArgvInput.php:85
Symfony\Component\Console\Input\ArgvInput->parseToken() at /daten/vhosts/webservice4t/libraries/vendor/symfony/console/Input/ArgvInput.php:74
Symfony\Component\Console\Input\ArgvInput->parse() at /daten/vhosts/webservice4t/libraries/vendor/symfony/console/Input/Input.php:56
Symfony\Component\Console\Input\Input->bind() at /daten/vhosts/webservice4t/libraries/vendor/joomla/console/src/Command/AbstractCommand.php:223
Joomla\Console\Command\AbstractCommand->execute() at /daten/vhosts/webservice4t/libraries/vendor/joomla/console/src/Application.php:1083
Joomla\Console\Application->runCommand() at /daten/vhosts/webservice4t/libraries/vendor/joomla/console/src/Application.php:374
Joomla\Console\Application->doExecute() at /daten/vhosts/webservice4t/libraries/src/Application/ConsoleApplication.php:201
Joomla\CMS\Application\ConsoleApplication->doExecute() at /daten/vhosts/webservice4t/libraries/vendor/joomla/console/src/Application.php:413
Joomla\Console\Application->execute() at /daten/vhosts/webservice4t/libraries/src/Application/ConsoleApplication.php:255
Joomla\CMS\Application\ConsoleApplication->execute() at /daten/vhosts/webservice4t/cli/joomla.php:77

 

Kindly

Romana

nicholas
Akeeba Staff
Manager

The id in akeeba:profile:copy is an argument, not an option. The correct command would be:

akeeba:profile:copy 1 --description="Weekly backup profile 2" -vvv

Note that arguments do not get the --something= prefix that options do. They are positional arguments, i.e. the order you put the values matters and tells the Symfony Console component which argument they correspond to.

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!

Romana02

Ups…

Thank You for Your reply and sorry for this superfluous inconvenience.

Romana

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!