Better Way To Backup Website
I have made a script that you can download. It took me a little while to make so I am asking for a $5 donation for the script. You can of course watch the video and write the code from there for free. Video is above.
Backup Website files and Database Script in PHP $5
Conclusion
This works better on Linux servers. However I have tested it on windows servers as well. If you have any questions or concerns please feel free to comment below. You should have a full backup of your site in a zip file format with the date on it.
How To Make A Free Website Backup PHP & MySql was last modified: January 31st, 2022 by
17 Comments
Script not working – get error message. It creates folder then error. can you please fix as it seems and excellent script
I have it on my schedule this week to check out the issue.
Hi Maximus,
Have you had a opportunity to look at bug
HI Hany, I looked at it and I am trying to work out a solution. I will notify you when I get it done. Just had a lot on my plate lately but since I know your waiting on it Ill make it a priority.
Was the bug ever fixed? And btw good tutorial.
I have it on my schedule, just been very busy.
me2 eagarly waiting
Hi there! Any new on this topic?
Here you go! 🙂 https://a1websitepro.com/make-free-website-backup-php-mysql/2/
I updated the script. You guys can check it out here. https://a1websitepro.com/make-free-website-backup-php-mysql/2/ Thanks!
Hello Where is the script ? Only video is there for now ?
Here is the script. https://a1websitepro.com/make-free-website-backup-php-mysql/2/
Bug is Fixed 🙂
Does the updated script where you ask for a donation update both the database and file folder associated with the database? If so, how do I get the $5 donation to you.
Sorry for the late response. I have been working with other projects. I am going to look at your question more carfully.
Just downloaded the updated script and it is working fine on one of my domains running php 7.4.x but have the following error message on a domain running php 5.6.39…yes, I know I need to upgrade but at the moment I’m stuck with it. What needs to be changed to fix the errors.
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in /public_html/backup.php on line 162
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in /public_html/backup.php on line 167
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in /public_html/backup.php on line 169
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in /public_html/backup.php on line 171
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in /public_html/backup.php on line 173
Notice: Use of undefined constant PHP_OS_FAMILY – assumed ‘PHP_OS_FAMILY’ in l/public_html/backup.php on line 175
The error messages you’re seeing are related to the use of the constant PHP_OS_FAMILY, which was introduced in PHP 7.2. Therefore, you can’t use it in PHP 5.6.39.
To fix the error, you can replace all instances of PHP_OS_FAMILY with the following code:
This code defines the constant PHP_OS_FAMILY if it doesn’t exist and sets it to the appropriate value based on the current operating system.
You should replace all instances of PHP_OS_FAMILY with the above code, and the error should be resolved.
However, keep in mind that PHP 5.6.39 is no longer supported, and you should consider upgrading to a supported version of PHP as soon as possible to avoid security risks and to take advantage of the latest features and improvements.