WordPress tar.gz backup fails when website is up but success when website is shut down

Hi Folks,

I have a wordpress website hosted on Apache Httpd running on Rocky Linux 8. The tarball backup of website filesyste fails whenever website is up. However when I shut down the apache http server, backup script is successful. Do wordpress plugins lock some files on the fileystem? Is there any way for tarball to ignore such lock and take the backup?

2 Comments
  1. how does the tar command fail, as in what’s the error message? i use restic these days but i used to tar and rclone back in the day, and never had an issue with the command/script failing.

  2. Some plugins might lock files, but you can use the –exclude option in tar to skip them

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer