简体   繁体   English

谷歌存储云上传文件使用PHP

[英]google storage cloud upload file using php

Are there any cloud services out there that will allow automated uploading using FTP through PHP? 是否有任何云服务可以通过PHP通过FTP自动上传? I would like to use Google Cloud Storage if possible. 如果可能,我想使用Google Cloud Storage。

What I am trying to achieve is running a cron mysql-dump that on completion will automatically move the result file to a cloud storage giving a backup of the database on a separate server. 我要实现的目标是运行cron mysql-dump ,完成后将自动将结果文件移动到云存储中,从而在单独的服务器上提供数据库备份。

If your goal is to just backup a cron job, you could consider using a non-FTP utility like gsutil . 如果您的目标只是备份cron作业,则可以考虑使用非FTP实用程序,例如gsutil Your cron job would have two steps: create a backup file with mysql-dump, and then upload that backup file using gsutil. 您的cron作业将分两个步骤:使用mysql-dump创建备份文件,然后使用gsutil上传该备份文件。

There are some third party programs that translate between cloud storage services and FTP, but I don't know of any cloud storage systems that support FTP directly. 有一些第三方程序可以在云存储服务和FTP之间转换,但是我不知道任何直接支持FTP的云存储系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM