Support

Akeeba Backup for Joomla!

#41703 Backup file not copied to Google Drive

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.2.4
PHP version
8.2.27
Akeeba Backup version
10.0.2

Latest post by nicholas on Sunday, 16 March 2025 14:41 CDT

sillitoe

Dear all,

Since 9 February, for this website, the backup file is no longer being copied to the Google Drive folder and I can't understand what's going wrong. Actually, the result is that the backup file is seemingly lost altogether. If I do a backup without copy to Google Drive, it works fine. Is there a simple explanation for whatever mistake I might be making? I attach the log file.

Thanks,

Alan

nicholas
Akeeba Staff
Manager

I can see in the log file that everything works well, and we do receive the expected responses from Google Drive. Therefore, the file has been uploaded. The question is where.

You need to understand that Google Drive was never meant to be generic file storage, let alone file storage that maps to a filesystem. It was made to store Google Docs. The general purpose file storage was grafted onto it haphazardly at a later point in time, when it became apparent Dropbox (and SkyDrive which later became what you now know as Microsoft OneDrive) was eating Google's lunch.

The organisation of Google Drive is not based on folder names. You just have folders known by their internal IDs. Each folder has a parent folder ID and a label. What you see in the interface is the label. Nothing stops you from creating two identically named folders in the same place. Deleted folders simply have a flag set on them. It is, therefore, possible to have two or more identically named folders, all with the same parent folder, one or more of which may be deleted (i.e. in the Trash).

Is it possible that you have a folder identically named to your desired storage folder elsewhere on your Drive, e.g. in Trash, or Shared?

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!

sillitoe

Dear Nicholas,

You are right. Stupid of me. The backup files are located within a folder called "Backup" and it seems that a second folder called "Backup (1)" has been created and the backup files are there. I really don't understand how this was created or indeed why I did not see it!

Thanks for your help.

Best wishes,

Alan

nicholas
Akeeba Staff
Manager

No worries! The very weird way Google Drive works with folders has caught a lot of people out, including yours truly. The first time it happened to me I thought I must be really stupid or far more tired than I thought I was, because after two hours I couldn't see anything wrong with my code. It took another half hour of sleuthing to find out that the problem was that the first ID returned for a specific folder name in Google Drive may not match what their interface shows as the intended-named folder. Yes, when there are duplicate folders with the same name their interface will show them with a suffix like "(1)".

Ah, Google, only marginally saner than Microsoft. Sigh.

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!

sillitoe

Not asking for help here, but just to say that I removed (and permanently deleted) the other "Backup" folder from my Google drive, expecting that things would somehow return to normal. However, Google drive new better than that. It recreated a new Backup folder rather than using the existing one!

Marginally saner is the word. Perhaps.

nicholas
Akeeba Staff
Manager

Yeah, sanity and Google are strangers to each other. If you haven't seen any folders becoming created afresh into the Trash you're one lucky man.

I recommend staying away from consumer-grade storage like Google Drive, OneDrive, Dropbox etc if you value your sanity. Instead, I recommend using S3-compatible storage. Not necessarily Amazon S3 proper; I am talking about S3 as an API protocol. There are plenty of third party storage providers offering S3-compatible storage including a lot of European ones: Scaleway, IONOS, Hetzner, etc. These all do work perfectly with Akeeba Backup, and they even tend to cost less than the consumer-grade storage providers! If you're worried about synchronizing them with your local computer, fear not for there's software like Mountain Duck (macOS and Windows, made in Switzerland) and rclone (Linux, Windows, macOS – it's CLI, but there's a GUI available as well). 

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!

sillitoe

Thank you for your good advice, Nicholas.

nicholas
Akeeba Staff
Manager

You're welcome!

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!