Duplicator: Backup and move sites

Recommended Posts

I notice on the Module settings that the username and password are displayed in plain text.

I've a few admins that I wouldn't like to be able to view these. Is masking these on the roadmap or even encrypting them?

Does this also mean that they're stored in the database in plain text?


Share this post

Link to post
Share on other sites


One more question

I have 2 FTP applications here successfully connecting to a destination server over FTPS SSL/TLS 


When I add the exact same credentials to Duplicator, I get the following


2018-09-06 15:00:43:  - job finished in 110.8802sec
2018-09-06 15:00:43:  [FTP] error: cannot upload file <> on server.
2018-09-06 14:59:40:  FTP: starting upload of /home/sites/
2018-09-06 14:59:40:  FTP: directory listing of Backups successfull.
2018-09-06 14:59:40:  FTP: retrieving directory listing of Backups...
2018-09-06 14:59:40:  FTP: directory listing of Sharey01 successfull.
2018-09-06 14:59:40:  FTP: retrieving directory listing of Sharey01...
2018-09-06 14:59:39:  FTP: logged in.
2018-09-06 14:59:39:  FTP: connection established.
2018-09-06 14:59:39:  FTP: connecting to
2018-09-06 14:59:39:  - package built successfully in 46.558444sec

So it looks like Duplicator is successfully building the package, logging in to the server and listing the directory files. It only fails to actually upload the ZIP

There are no size restrictions on the server and there are I have disconnected the other FTP apps to ensure that's not the issue either.

Any ideas why the upload might fail? This only happens on TLS/SSL and not under 'regular' unencrypted FTP



Share this post

Link to post
Share on other sites

Found a problem when the webiste is on a different port number (http:\\ the backup fails. The logs list:

1 hour ago
2018-09-07 12:53:33
admin /processwire/setup/duplicator/?action=backup_n… - package build failed.
1 hour ago
2018-09-07 12:53:33
admin /processwire/setup/duplicator/?action=backup_n… - an error occured during package build.
1 hour ago
2018-09-07 12:53:33
admin /processwire/setup/duplicator/?action=backup_n… - an error occured while building the ProcessWire structure.


It is adding the colon(:) into the filename of the zips. I changed the code in DupUtil.php on line 48 to filter the colon(:) out and replace it with a period:

FROM:    $filename = $date . '-' . str_replace(' ', '_', $name); 

TO:         $filename = $date . '-' . str_replace(':', '.', str_replace(' ', '_', $name));

There may be a better place to put this in but it does the trick!

Thanks for the plugin - it's my goto for securing backups.

Yours truly


  • Like 1

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 John W.
      Question 1
      I recently installed PW 3.0.62 for a new site and also have sites running older version of PW 3.x.
      Can I export the database on an older version of PW 3.x and import it to PW 3.0.62 without any issues?
      Question 2
      (This is kind of alternative to the above for long term use - and maybe a better solution...)
      On  the sites I've previously built I have templates (home, basic-page, contact) and fields that I commonly use, such as business_name, phone_1.  The last site I built is running PW 3.0.42.  I was considering cloning this into a local site and running the upgrade module to bring it up to PW 3.0.62. From there on out when I start I new project I could just run the PW upgrade module, copy the folder to the location for the new project and duplicate the database using the new projects name.

      So basically, I'll always keep a "blank slate" site that I can just run the PW upgrade on, then duplicate into a new project. This would cut down on the work and time spent having to re-create these common fields, that I use. From there, I would just add fields, templates, etc, specific for the new website project.

      Is this a sound approach to speed up development?

    • By John W.
      I just posted a question about moving PW from a resting domain to a production domain, after consideration I figure I would create a new post for a second question I have.
      I noticed the coming feature of client size image resizing. This will be really helpful, as I have some clients on a Satellite connection. I'm telling you, them trying to upload 15MB images, or them getting them straight on batch resizers (or Photoshop) to resize before upload is a real chore. Needless to say, Ryan has been doing an excellent job addressing this.
      My question, is that I have several clients on PW 2.x thru 3.x. Is there a really good guide on steps that I need to take to update the core to take advantage of the features of new releases? Are their perils to look out for?
      Yeah, after developing several sites, I feel a bit silly about asking this one, but, the docs doesn't seem to be clear in a "general" sense of upgrading the core across all versions.
      Thanks everyone for your time and assistance.
    • 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 ('' 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
      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 Fantomas
      Hi all,
      I'm still new to processwire and now I have to create the first hook.
      I need to modify the page-clone module, so there is a field in pages that has to be empty after cloning the page. How could I start this task?