Giter Site home page Giter Site logo

sudo-ryan / 20i-reseller-backblaze-b2-backups Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 219 KB

20i reseller hosting only take backups for disaster recovery which are not available to resellers. Snapshot backups are available however start at £9.99 for 50 sites. Since backblaze is $0.005 per GB and you can backup unlimited sites with this script, it's cheaper and means you have your data available outside of their network.

PHP 100.00%

20i-reseller-backblaze-b2-backups's People

Contributors

ryanall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

20i-reseller-backblaze-b2-backups's Issues

Question

Hello and thank you for this great script...
i have one question please

How can i add more accounts (except the backup account) that i dont want to backup them?

thank you:)

20i backup cleanup schedule 7 Days only

Hi Ryan,

As guided by you we implemented the below but still it is storing 1 month backup. We don't want to keep the backup for '1 month' .


Schedule the clean up job to be every 7 days and update the following in manager.php
const DELETE_BACKUPS_OLDER_THAN = '1 month';


1> We want to keep backup only for last '7-15 days' what should we write in the script instead of '1 month'; to achieve this ?

2> We have created one more domain for backup but here we want to take weekly backup, how can we implement that ?

3> Can we backup only the database for an account with this script ?

4> 20i has three platforms - Linux, Wordpress, Windows. This script can backup all of them, is that right ?

Awaiting reply...

__
Best Wishes & Regards,
Lily M.

20i backup cleanup schedule from backblaze

Hi Ryan,

Thank you for your help and support, the script is now running.

1> We are not able to delete the old backups, we don't want to keep for '1 month' but only for last '7 days' what should be our input in the script for this ?

2> Also we are not able to exclude our the backup domain (which is used to backup the script), please guide us on how to do that...

3> Can you please let me know what you had bent by Random Domain ( Domain that has not been registered / exist )

Awaiting reply...

__
Best Wishes & Regards,
Lily M.

20i backup - Exclude Site

Hi Ryan,

Thank you for your help.

As per your guidance we implemented the below -

1> When we input the account name in - private $excludedSites = [cloudnetwork.tk]

The backup is not downloading to backblaze, when we tested the Scheduled Task command it shows below message -

PHP Notice: Use of undefined constant cloudnetwork - assumed 'cloudnetwork' in /home/sites/9b/b/b9500fc55c/public_html/manager.php on line 317
PHP Notice: Use of undefined constant tk - assumed 'tk' in /home/sites/9b/b/b9500fc55c/public_html/manager.php on line 317

When I remove the domain name from the excluded sites it works. How to exclude the site, What needs to be done to correct this ?

2> Will the script work if we do not use a live domain ?

Awaiting reply...

__
Best Wishes & Regards,
Lily M.

error

Hello

I am getting an error / message when i test the cron
the message is : PHP Notice: Use of undefined constant gbackup - assumed 'gbackup' in /home/sites/3x/x/xxxxxxxxx30/public_html/manager.php on line 317
PHP Notice: Use of undefined constant net - assumed 'net' in /home/sites/xa/x/xxxxxxx30/public_html/manager.php on line 317

any ideas ?
Thank you very much
Georgios

need advise

Hello
I tried to use the script after sometime but i get these errors:

20i CLI Backup Manager

Found 10 sites under this account, checking if we have backups...

[DOWNLOAD] ☁️️ Found a remote backup for .gr created at 03-03-2020-17-32-06, downloading
[DOWNLOAD] ☁️️ Found a remote backup for gr created at 03-03-2020-17-32-06, downloading
downloading
[TRANSFER] ⚡ Upload initiated for backup .gr_03-03-2020-17-32-06.zip
PHP Fatal error: Uncaught ChrisWhite\B2\Exceptions\B2Exception: Received error from B2: incident id c8b86ffcd40a-ntCbNiTZS5axmY0ia6Yz0Q== in /home/sites/10a/c/
/public_html/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php:36
Stack trace:
#0 /home/sites/10a/c/
/public_html/vendor/cwhite92/b2-sdk-php/src/Http/Client.php(29): ChrisWhite\B2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))
#1 /home/sites/10a/c/
/public_html/vendor/cwhite92/b2-sdk-php/src/Client.php(217): ChrisWhite\B2\Http\Client->request('POST', 'https://pod-000...', Array)
#2 /home/sites/10a/c/
/public_html/manager.php(211): ChrisWhite\B2\Client->upload(Array)
#3 /home/sites/10a/c/
*/public_html/manager.php(301): TwentyIBackupManager->transferBackups()
#4 /home/sites/10a/c//public_html/manager.php(318): TwentyIBackupManager->boot()
#5 {main}
thrown in /home/sites/10a/c/
***/public_html/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php on line 36


Any ideas ?
Thank you very much:)

Error on Upload

Got mine working now, but I get this error?

PHP Notice: 404 on https://api.20i.com/package/702105/web/websiteBackup in /home/sites/10a/0/008953edb5/public_html/20i-backup/20i_client.php on line 30
PHP Fatal error: Uncaught ChrisWhite\B2\Exceptions\B2Exception: Received error from B2: c000_v0001067_t0049 is too busy in /home/sites/10a/0/008953edb5/public_html/20i-backup/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php:36
Stack trace:
#0 /home/sites/10a/0/008953edb5/public_html/20i-backup/vendor/cwhite92/b2-sdk-php/src/Http/Client.php(29): ChrisWhite\B2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))
#1 /home/sites/10a/0/008953edb5/public_html/20i-backup/vendor/cwhite92/b2-sdk-php/src/Client.php(217): ChrisWhite\B2\Http\Client->request('POST', 'https://pod-000...', Array)
#2 /home/sites/10a/0/008953edb5/public_html/20i-backup/manager.php(218): ChrisWhite\B2\Client->upload(Array)
#3 /home/sites/10a/0/008953edb5/public_html/20i-backup/manager.php(308): TwentyIBackupManager->transferBackups()
#4 /home/sites/10a/0/008953edb5/public_html/20i-backup/manager.php(325): TwentyIBackupManager->boot()
#5 {main}

Can I use that script to back up any website?

Hello, thanks for this great script, I'm wondering if you can customize this script to backup a website on the standard hosting accounts. I have Linux hosting account and I want to use this script to make backups for my website, so instead of using API of the i2 can you use FTP or something similar.

Best reagrds,
Mohamed Ali

How does this work?

Hi

I think it is working. But a question.

I am guessing -download downloads the backups, and -backup means backing up to backblaze?

Where does it download them too? i.e. where is the backup stored before uploading it to backblaze please?

Would like to just understand it, thats is all.

Thanks

[QUESTION](13-8-19) -Backup Script Help Requested

Hi,

Thank you for taking time to create a script to help the community :)

I have two questions

1> Do we have any example script to see what to fill where in the script for a new user
(as offered in - https://whmbackup.solutions (cPanel / WHM Backup Solution)

2> Do we have any other option for remote backup than such as Remote FTP Storage other than backblaze. we plan to host the backup domain with 201 and not on ant other server. But instead of Backup Blaze if we can use remote FTP as we have 10 TB space

__
Best Wishes & Regards,
Naveen A.

Help!

I can't see

$excludedBackups in manager.php

Also does this backup to the ftp it is installled on first?

??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.