flydev

Duplicator: Backup and move sites

43 posts in this topic

This might be a bit off topic, but this problem has come up a few times. Maybe the modules directory could proxy downloads of modules and add the vendor folder on demand (to the module itself) if a composer.json is present. So users can choose if they do a composer install some/module or install it via the backend – without the benefits of a global dependency management tool in the latter case.

4 people like this

Share this post


Link to post
Share on other sites

How to create a GoogleDrive service account step-by-step

Edited the 2017-02-18

 

Go to https://console.developers.google.com

 

  • Create a new project:

step1.PNG

step2.PNG

 

  • Enable the API:
     

step3.PNG

step4.PNG

step5.PNG

 

  • Create credentials:


step6.PNG

 

  • Select "New service account"

step7.PNG

step8.PNG

 

  • Click on Create and save the JSON key file
  • Click on Manage service accounts :

step9.PNG

 

  • Copy the service account ID :

step10.PNG

 

  • Configure Duplicator by copy/pasting the service account's email and the content of the JSON key file :

step11.PNG

 

4 people like this

Share this post


Link to post
Share on other sites
9 hours ago, fbg13 said:

@flydev Take a look at https://github.com/jubos/fake-s3 and https://github.com/jserver/mock-s3

I have not used them.

It is mainly to test different servers configuration as currently the AmazonS3 implementation is quite stable. And I found a way directly in the AmazonAWS console to create accounts and sharing keys for users.

Anyway thanks for the suggestion, maybe I will give  a try by curiosity ;)

1 person likes this

Share this post


Link to post
Share on other sites

Just a small update:

I managed to get the module working without Composer. All SDKs can be downloaded separately and you can choose which one Cloud Service to use or even not use any at all.

 

And some precisions :

What is the primary goal of this module and how it works?

This module is a backup utility. It make a package which contain a full database dump + full website. The package can be saved locally or/and uploaded to a FTP server, GoogleDrive, Dropbox or AmazonAWS.

 

is it compatible with PW2? Guess not.

With 2.8 yes.  ProcessWire 2.7 need to be tested as now every SDKs can be downloaded separately. But it already works for saving package to a local folder.

 

I don't use composer. Any other way to install?

Just download the SDK you need.

 

I'm on windows. Will PWcron run?

Without any problem. Look at this answer to set up it: http://stackoverflow.com/questions/7195503/setting-up-a-cron-job-in-windows

 

What are google/dropbox/AWS needed for?

Only needed to upload a package to their service.

 

How can I restore the website? Is it possible to rebuild mine website on a other server?

Yes but you have to do it manually. You unzip the package (the zip file), upload your website, import you SQL database, adjust settings in config.php and tadaa, it works.

The final goal of the module is to automate this process, but is not yet implemented.

 

 

 

5 people like this

Share this post


Link to post
Share on other sites

This morning, after some adjustments and tests, the module run smoothly on ProcessWire 2.7, 2.8 and 3.x.

6 people like this

Share this post


Link to post
Share on other sites

Hi,

Looking forward to use this module.

Thanks for the work

1 person likes this

Share this post


Link to post
Share on other sites
On 07/03/2017 at 6:38 PM, antpre said:

Hi,

Looking forward to use this module.

Thanks for the work

Hi @antpre and everyone.  I lack time in recent days but the module should be available to the public the next coming week!

4 people like this

Share this post


Link to post
Share on other sites
5 hours ago, flydev said:

I lack time in recent days but the module should be available to the public the next coming week!

this is awesome news!

1 person likes this

Share this post


Link to post
Share on other sites

Dear @flydev! Just wanted to let you know that this module is eagerly awaited. Just in case you had a doubt))
Any news?

3 people like this

Share this post


Link to post
Share on other sites

I feel really sorry. I have had some problems in recent months that have caused my brain to stop working .. And so I hesitated to launch the module knowing I could not give support.

Anyway, I'm better and I resume the development as soon as I have my internet connection operational (should be good for monday).

 

Sorry again guys!

5 people like this

Share this post


Link to post
Share on other sites

Nothing to be sorry about @flydev. Thanks for your work. Really hope it will work out in your personal matters.

3 people like this

Share this post


Link to post
Share on other sites

Take care of yourself.

Hopping everything gets better for you soon.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By suntrop
      Hi all
      I have big troubles with my DB backups and phpMyAdmin. I can't manage to import a backup.
      The phpMyAdmin export settings are left to the defaults. The error message I get:
      #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `caches` (`name`, `data`, `expires`) VALUES ('ModulesUninstalled.in' at line 11 When I delete the complete 'cache' section there are almost for all tables the same errors. (part of the dump attached)
      I had this problem before and back then (couple months ago) I think I copied almost every table individually. I thought it was specific to that DB. But I can't do a dump/import of any of my PW installations.
      MySQL: 5.6.27
      PHP version: 7.0.11
      phpMyAdmin: 4.5.5.1
      Anybody knows that problem? Or what to do?
      phpMyAdmin SQL Dump.sql
    • By vwatson
      Is it possible to add check boxes in order to select multiple backup files and delete them all at once, rather than having to click each one, then Delete?
      Also it would be helpful to make the Restore process more distinct from Deleting.  I must have inadvertently clicked the wrong button once and restored a backup unintentionally, wiping out a day's work. My mistake of course. I obviously wasn't paying close enough attention.  
    • By gim
      Hello,
      I have PW sites and I need to migrate to a new host; the host is requesting that I create a TAR backup of a site.  I don't have experience with this.  Can this be done?  How would I begin?
      Thank you in advance,
      Dan