Cloud backup function
-
Hello,
I am backing up my website based on the following page:
https://updraftplus.com/faqs/can-i-run-backups-from-the-shell/
Everything works fine, but the backup is not uploaded to GoogleDrive.
Do I need to add another function?
I wait for your reply,
Franco.
-
Hi Franco,
May I know what is the exact error message you are getting please?
Please could you send us a copy of the latest full backup log?Regards,
BryleHi Bryle,
Thank you very much for your answer.
Actually, I don’t see an error message, only that when I run the full backup from cronjob, it is not stored in the cloud (google drive).
But if I run it manually it works.
Here I attach the log file.
https://drive.google.com/file/d/17_3VHpyj0m-waEQ3nEpd74qx0hNr2yf_/view?usp=sharing
Thank you very much for your help.
Franco.
Hi Franco,
The log shows “0067.205 (0) Cloud backup selection (1/1): none with instance (1/1) (last)”. Google Drive remote storage seems to have not been set? Please check this video tutorial.
Thanks,
BryleGoogle drive is well established.
In fact when I do a manual backup it is stored in drive.
But when I backup through cronjob, it doesn’t work.
Will there be any more parameters to be passed in order for it to be stored in the cloud?
Hi,
Apologies, please disregard my previous reply.
I am asking one of our colleague about this.
Thanks,
Bryle-
This reply was modified 4 years, 6 months ago by
bcrodua.
Thank you!
I wait for a new answer π
Franco.
Hi Franco,
Apologies for the delay. The colleague I’ve asked to check has been away.
I’ve asked another colleague to check.
Thanks,
BryleHi Franco,
Our developer is asking if you can send to us the code that you are using to boot the backup via cron?
Thanks,
BryleHello,
Thanks for your answer.
This is the code:
<?php define('UPDRAFTPLUS_CONSOLELOG', true); require_once('wp-load.php'); do_action('updraft_backupnow_backup_all'); ?>And this is the cron:
00 01 * * 6 /usr/bin/php /directory/filename.php >/dev/null 2>&1
Thanks!
Franco.
Hi,
Can you add this instead please?
define(‘UPDRAFTPLUS_CONSOLELOG’, true);
define(‘DOING_CRON’, true);
require_once(‘wp-load.php’);
do_action(‘updraft_backupnow_backup_all’);Here’s our guide – https://updraftplus.com/faqs/can-i-run-backups-from-the-shell/
Thanks,
BryleHi Bryle, how are you?
I just tried this new code and I get the same result.
The backup is successful but it is not stored in GoogleDrive as when I do it manually.
Any other idea?
Thanks for your help,
Franco.
Hi Franco,
Apologies for the late reply.
I will ask one of my colleagues to check.
Thanks,
BryleHi Bryle, how are you?
Do you have any answer about this problem?
Thanks,
Franco.Hi,
Apologies for the ongoing inconvenience.
Please could you send us a backup log from a manual backup where the upload to Google Drive did succeed, so we can compare?
The backup triggered by the script should use the exact same paramters as a manual backup. Only the trigger mechanism is different.
Best Wishes,
DeeHi Dee, how are you?
Here I share the “manual backup log” and the “cronjob backup log”.
Manual:
https://drive.google.com/file/d/1f0B5GEPngiXr8slTJmLkRqiEsuPSmD6c/view?usp=sharing
Cronjob:
https://drive.google.com/file/d/11vaHxUujl3cKjq1vVCGCy9OYguziSXGJ/view?usp=sharing
The manual was stored in Drive, the other was not.
Thanks for your help,
Franco.
-
This reply was modified 4 years, 6 months ago by
The topic ‘Cloud backup function’ is closed to new replies.