Wordpress Toolkit does not back up entire Wordpress directory

kgs

Member
Dec 15, 2020
23
2
3
USA
cPanel Access Level
Root Administrator
Howdy!

Unlike Wordpress Manager, Toolkit does not appear to backup everything in the Wordpress directory. For example, we have several non-wordpress directories (with php scripts and other files) in that directory because they rely on the main domain, but are not part of the wordpress installation.

I am wondering what the rationale was for not simply backing up the entire directory, but being selective of wp-only directories.

I also wonder what would happen to those non-wp directories in the event of a restore. Would they be deleted?

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,029
313
cPanel Access Level
Root Administrator
So we're having some interesting discussions on our end about this issue :D I've reached out to the WordPress Toolkit developers but I don't believe I'll hear back with this being a weekend now in their time zone. I'll update you as soon as I have more details but it could be Tuesday or Wednesday of next week before I hear anything official about this.
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
52
103
Houston
cPanel Access Level
Root Administrator
Hey there! I've been reviewing the discussions that @cPRex had been having on Friday, and it seems that backing up of only WordPress related files is expected behavior.

WordPress Toolkit intentionally backups only WordPress-related files, to avoid inclusion into a backup of one site the content of another site or other unrelated files or directories. WordPress does not typically include any user data outside of wp_content and wp_includes.

If you can describe which specific files were not backed up and how they were placed there, this may help to validate or invalidate these assumptions and make necessary corrections. With that being said, and regarding the backup process being slower than the original WordPress Manager, would you mind opening a support ticket so that one of our analysts can take a closer look into the issue?
 
  • Like
Reactions: cPRex and custer

kgs

Member
Dec 15, 2020
23
2
3
USA
cPanel Access Level
Root Administrator
Hey there! Circling back after a couple of months!

I just verified that WordPress Toolkit is still only backing up WordPress-related files, so I guess this it still worth bringing up.

In one of my sites, a directory that is not being backed up with Toolkit is a donation directory and its files. This is a php script to accept donations that runs outside of WordPress, but needed a URL relative to the main domain, so it was placed alongside the WordPress files in the main WordPress directory.

For reference: WordPress Manager (deprecated) backs up non-WordPress files. It's great.

Also, FYI Softaculous backup has the option for users to choose whether or not to backup the whole WordPress directory, or just WordPress-related files.

Since we have WordPress sites that include non-WordPress content, this would be a helpful feature to have.

At least the restore doesn't appear to delete non-WordPress files, so I guess that's good.

Thanks!