Support

UNiTE, Remote CLI, eXtract Wizard

#3808 remote cli - not deleting jpa file

Posted in ‘UNiTE and Remote CLI’
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

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Saturday, 24 December 2011 08:24 CST

user12377
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.7.3
PHP version: 5.2.14
MySQL version: 5.1.59-log
Host: domeneshop.no
Akeeba eXtract Wizard / Remote Control / SiteDiff version: remote CLI

EXTREMELY IMPORTANT: Please attach a ZIP file containing the Remote Control and Akeeba Backup log files if you are reporting an Akeeba Remote Control issue, othrewise we can not help you. Remember that your attachment must be a ZIP file! Other file formats (including .txt) may be silently rejected by our site.

Description of my issue:

I have been using the remote CLI. The backup is successful and the jpa-file is downloaded.
But the jpa-file is not deleted from the host.

The log states:
DEBUG |111218 19:31:13|Not removing processed file /administrator/components/com_akeeba/backup/site-20111218-191627.jpa

the remote script:
php remote.phar --action=backup --host=http://host.something/_sites/rocket --secret=secret --profile=1 --download --dlmode=curl --dlpath="/home/to download/backup/sites/alarmmannen.no" --dlurl="ftp://ftpuser:[email protected]/www/_sites/rocket/administrator/components/com_akeeba/backup" --delete

regards
Geir Klevstad

nicholas
Akeeba Staff
Manager
I have been trying that with different local and live hosts, but I can't replicate this. If you use the --delete option, as soon as the download completes RemoteCLI sends a request back to your site to delete the backup archive. At this point, Akeeba Backup (the component) on your site deletes the backup archive files, but not the backup record. If the backup archives are not deleted, that's a problem on the server side (your site), not RemoteCLI.

Just so that we are on the same page, I'd strongly recommend making sure that you're using Akeeba Backup 3.3.10. Some earlier versions did have a bug which prevented them from deleting backup archives from your server. If this doesn't work, please try going to Akeeba Backup's back-end, check the backup record and click on "Delete Files". Do the files get deleted from your host?

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!

user12377
I am able to both delete(record and Archive) and deletefiles(delete archive) from the backend of my site.

--

In your remote CLI walktrough you use the option --delete in two different places in the script:

Case A:
php remote.phar --action=backup --host=http://www.example.com --secret=iloveakeeba --profile=1
--download --dlmode=curl --dlpath="c:\Downloads" --delete
--dlurl="ftp://foo:[email protected]/public_html/administrator/components/com_akeeba/backup"

CaseB:
php-cli.exe remote.phar --action=backup --host=http://www.example.com
--secret=iloveakeeba --profile=1 --download --dlmode=curl --dlpath="c:\Downloads"
--dlurl="ftp://foo:[email protected]/public_html/administrator/components/com_akeeba/backup"
--delete

Does this matter?

-- part of new backend log
[111115 16:43:05] -- Removing temporary file 4d0caccc.sql
[111115 16:43:05] -- Removing temporary file f36992a6.sql
[111115 16:43:05] -- Removing temporary file aa6bdb4d.sql
[111115 16:43:05] Updating statistics
[111115 16:43:05] Removing any old records with site-site.no-20111115-153432.jpa filename
[111115 16:43:05] 1 records found
[111115 16:43:05] Updating statistics with file sizes
[111115 16:43:05] Total size of backup archive (in bytes): 147542662
[111115 16:43:05] Loading post-processing engine object (none)
[111115 16:43:05] Initializing post-processing engine
[111115 16:43:05] 1 files to process found
[111115 16:43:05] Beginning post processing file /administrator/components/com_akeeba/backup/site-site.no-20111115-153432.jpa
[111115 16:43:05] Finished post-processing file /administrator/components/com_akeeba/backup/site-site.no-20111115-153432.jpa
[111115 16:43:05] Not removing processed file /administrator/components/com_akeeba/backup/site-site.no-20111115-153432.jpa
[111115 16:43:05] Post-processing has finished for all files

nicholas
Akeeba Staff
Manager
The order of the commands is not significant. When RemoteCLI starts, it puts them all in a keyed array, a sort of digital basket, from where it fetches each parameter if it exists.

Also, the log file is completely irrelevant. What gets logged is what happens before your backup is download to your local PC. That's why nothing is deleted at that time. If it were deleted, it would not be downloaded to your PC.

What I want you to do, is to go to your site's back-end, Components, Akeeba Backup, Administer Backup Files and see if the files are there after your command has run. I also want you to check that you really have Akeeba Backup 3.3.10 installed on your site. Using Akeeba Backup 3.3.10 and a fresh download of Remote CLI I'm still unable to replicate this :(

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!

user12377
SOLVED:

I'm using the newest backup versjon 3.3.10

I was playing around with the options with the resultat of the latest backup file being deleted:

The command working on my host are:

php remote.phar --action=backup --host=http://host.host --secret=secret --profile=1 --download --dlmode=curl --dlpath="pathtodownload" --delete --durl="ftpsomething" -D

The optons --download --delete --D seems to do the trick. Feel free to comment the use of these options.

Put together in a script i'm able to backup and download all my sites.

Great component for Joomla

Merry xmas

Regards
Geir K

nicholas
Akeeba Staff
Manager
Hi Geir,

Normally, --delete and -D are equivalent, meaning that specifying either one should work. I was testing with my latest developer's release. Maybe the published released had a bug which I "accidentally" fixed when doing some tweaks in my development version. This would explain why --delete didn't work, but -D did work.

Merry Christmas!

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!