Jump to content

Recommended Posts

Posted

Before I do something wrong, let me just check. If I make a backup from my live site, can I then put that file in my local machine development site (that is identical to the live site but outdated) and have Duplicator update everything automatically?

Posted

Hi @Claus  

1 hour ago, Claus said:

Before I do something wrong

Don't worry, you SHOULD do it before doing something else 🙂  Duplicator will not alter anything, still.

---

Whether local or live, it's always recommended to make a copy to avoid any frustration. Duplicator will me a perfect copy of your live site and you will have possibility to either download the backup (package) from the admin page or manually from your FTP server. Inside the package you will have at hand your distant database backup and all distant files (based on the configuration -> see module's settings - using default settings is safe).

So if your goal is to update your local dev, then you must (as always) make a backup of it just in case. Once that's said proceed following theses steps:

  1. make copy of your local dev 
  2. create a backup on live site and download the package
  3. update your local dev site - here you have two options as I don't know how your local setup work:
    • option 1 (manual):  extract the zip and import your database then adjust database settings in config.php file to use your local database server.
    • option 2 (auto)    : use the installer.php and follow the steps to import everything

Now, if you need to bring back modifications from the old dev (local) site to your new dev (based on fresh live site) then you have to do it manually. Using a diff tool make thing easier and faster. Using @bernhard migration is also a good option.

 

  • Like 1
Posted

Okay, automatic option 2 sounds good (I have the whole show on Github so I’m good to go).
Just ran it – and was careful to fill in the database information from `config-dev.php` and it worked perfectly!

Very nice!

  • Thanks 1
  • 2 weeks later...
Posted

I am unable to restore a backed up site all of a sudden. I've done it many times, but this time it isn't working. After running the installer.php file, it goes through the motions, but it takes forever to extract, when it's finally done, I get a partial Step #3 page.

image.thumb.png.b25b45275ed97c14df05b10055cbeb84.png 

I can't do anything after that because there isn't any button or anything else to click. This hasn't happened in the past. Do you have any ideas on why this might be? Like I mentioned, the extraction takes forever, seemingly much longer than previously. It isn't a big archive (110 MB).

Posted
1 hour ago, msavard said:

I am unable to restore a backed up site all of a sudden. I've done it many times, but this time it isn't working. After running the installer.php file, it goes through the motions, but it takes forever to extract, when it's finally done, I get a partial Step #3 page.

I can't do anything after that because there isn't any button or anything else to click. This hasn't happened in the past. Do you have any ideas on why this might be? Like I mentioned, the extraction takes forever, seemingly much longer than previously. It isn't a big archive (110 MB).

Sorry to answer my own question. I had to change the installer script and put 

set_time_limit(1200);

at the beginning. It was 300, then I changed it to 600 and that didn't work, so I tried 1200.

 

  • 1 month later...
Posted

Comrades:

Copied a site to a new server at all-inkl

All went very well so far, but when I start a backup using Duplicator, the script terminates after a minute or so.

The backup zip actually starts being written (with FTP, I can see how the file size increases) but stops at about 1GB (and file disappears).

The server is running PHP 8.1 and I have a .user.ini file in place to establish higher PHP limits already, like:

   max_execution_time = 600
   memory_limit = 1024M

Checked that it came into effect using phpinfo().

Anyone having a clue, what other limits could prevent the backup file from growing larger?

Posted

When I encountered the problem, the limitation was execution time, not file size. Their helpful support can certainly tell you more.

  • Like 1
Posted

I guess I found the trick:

Duplicator offers a setting "Flush ZIP after quantity of MBytes"

Tried setting "500" and voila, the backup finished successfully on that all-inkl server.

Happy New Year!

  • Like 2
  • 1 month later...
Posted

Glad you got it sorted out! Setting the “Flush ZIP after X MB” option often fixes issues like these on shared hosting environments. Congrats on the successful backup and thanks, happy new year too! 😅

  • 1 month later...
Posted

Problem that has been off and on for a while. 

When I click on the Backup Now button in the control panel it briefly shows the busy graphic, then it disappears and nothing happens. I've tried other browsers, clearing cache, etc. It works sometimes as I have several backups, but this time I can't get it to work.

Has anyone else had this problem? I do see an error in the console about the content needing to be served over a secure connection (https) which the link to kick off the backup process is not. Is this something that can be fixed? 

Posted

Hi @BigRed generally this happen on error - you should check the logs on the module and if there is nothing relevant then check PHP logs on hosting side to spot the issue. 

If you are on a shared hosting then try enabling what @HerTha lastly posted just above on 1st January.

  • 1 month later...
Posted

@BigRed - same problem here. did you find a way to handle?

can't find anything in the logs, 
working on 1256 MB memory,
120 sek execution time,
set FLUSH to 500MB,
pw 3.0.240,
duplicator v1.5.4

 

Posted

I was able to use http:// and the IP address, then everything worked as expected.

I was using https:// and the domain name before.

Posted

so did you call the backend via IP address?

as the installation is on a shared hosting box this is not working for my setting.

any other idea? did you manage to find a log file entry for the error @BigRed ?

  • 3 weeks later...
Posted

I just used the IP address as the URL and it worked. We have a pretty simple setup (no shared hosting, server is located on premises) so it was easy to do the IP thing. I didn't find any log entry that reported the problem though.

  • 1 month later...
Posted

I'm having another issue with duplicator. When I try and restore a backed up site, the files are unzipped and it looks like everything will work, then I get a page saying:

The file containing the MySQL database couldn't be found.

All the files from the backup are there. It extracted the files. I've never encountered this before. Does anyone know how to fix this?

 

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
×
×
  • Create New...