<input type="hidden" id="_wpnonce" name="_wpnonce" value="0f153c9372" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/3892" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="0f153c9372" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/3892" />{"id":3892,"date":"2015-10-23T22:27:16","date_gmt":"2015-10-23T11:27:16","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=3892"},"modified":"2015-10-25T13:48:04","modified_gmt":"2015-10-25T02:48:04","slug":"how-to-schedule-backups-for-wamp-files-and-databases","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2015\/10\/23\/how-to-schedule-backups-for-wamp-files-and-databases\/","title":{"rendered":"HOW TO SCHEDULE BACKUPS FOR WAMP FILES AND DATABASES"},"content":{"rendered":"<!--CusAds0--><p>I managed to figure out a way to backup the WAMP files and databases by using the Windows Task Scheduler and a batch file. The batch file includes using mysqldump (already part of the WAMP install), 7-zip (a free open source compression tool) and gzip (for the database compression).<\/p>\n<h2>BATCH FILE<\/h2>\n<p>Let&#8217;s have a look at the batch file:<\/p>\n<pre>@echo off\r\nREM -------------------------------\r\nREM -                             -\r\nREM - Batch File to Backup WAMP   -\r\nREM - Created By Business Legions -\r\nREM - www.businesslegions.com     -\r\nREM -------------------------------\r\n\r\n\"C:\\Program Files\\7-Zip\\7z\" a -tzip c:\\Backups\\temp\\wamp-www-backup-%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.zip C:\\wamp\\www\r\n\r\nC:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\mysqldump.exe -ubackupusername -pbackupusername123 --all-databases | C:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\gzip &gt; c:\\backups\\temp\\alldatabases-%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.sql.zip\r\n\r\ncopy c:\\backups\\temp\\*.* f:\\backups\\\r\nmove c:\\backups\\temp\\*.* f:\\backups\\\r\nexit<\/pre>\n<p>You can download the above batch script in a file from the resources section at the bottom of this post.<\/p>\n<p>The first statement compresses the wamp\/www folder. The name of the zip file includes the date and time by using the syntax in bold:<\/p>\n<pre>wamp-www-backup-<strong>%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%<\/strong>.zip<\/pre>\n<p>You can actually exclude other folders from the zip file by using the\u00a0statement in bold at the end of the zip compression:<\/p>\n<pre>\"C:\\Program Files\\7-Zip\\7z\" a -tzip c:\\Backups\\temp\\wamp-www-backup-%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.zip C:\\wamp\\www <strong>-xr!foldername<\/strong><\/pre>\n<p>The next line dumps all the databases and compresses it by using gzip. You will need to download and save the gzip tool as it doesn&#8217;t actually come preinstalled with WMAP. You will also need to specify the full path of where the gzip command is located. Note that your path where mysqldump is located could be different because of the version of WAMP you&#8217;re using. When dumping the database you need to make sure you have an account with the correct permission. In the below command I used an account called backupuser with the password backupusername123. Yes &#8211; it&#8217;s not very secure having the password in a file and clear text but I use mine on a standalone environment that does not have access to the Internet so use it at your own risk.<\/p>\n<pre>C:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\mysqldump.exe -ubackupusername -pbackupusername123 --all-databases | C:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\gzip &gt; c:\\backups\\temp\\alldatabases-%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.sql.zip<\/pre>\n<p>The next line copies the files to an external thumb drive. That&#8217;s must a backup of a backup in case the physical hard disk drive. You can remove these lines if you think it&#8217;s overkill or alternatively you can just backup to the external thumbdrive by changing the c: to the drive of the thumb drive. In my case I<\/p>\n<pre>copy c:\\backups\\temp\\*.* f:\\backups\\\r\nmove c:\\backups\\temp\\*.* f:\\backups\\\r\n<\/pre>\n<h2>VISUAL BASIC SCRIPT<\/h2>\n<p>In order to run a scheduled task silently, you need to use a Visual Basic Script. The one I have used is as per below.<\/p>\n<pre>Dim WinScriptHost\r\nSet WinScriptHost = CreateObject(\"WScript.Shell\")\r\nWinScriptHost.Run Chr(34) &amp; \"D:\\batch files\\backups.bat\" &amp; Chr(34), 0\r\nSet WinScriptHost = Nothing<\/pre>\n<p>You can download the above batch script in a file from the resources section at the bottom of this post.<\/p>\n<p>Just change the path to the batch file in the script:<\/p>\n<pre>D:\\batch files\\backups.bat<\/pre>\n<h2>WINDOWS TASK SCHEDULER<\/h2>\n<p>To automatically run the backup I used the task scheduler within Windows. Just create a new task:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3908\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks\" width=\"196\" height=\"107\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks.png?strip=all 196w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-178x97.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks.png?strip=all&amp;w=78 78w\" sizes=\"(max-width: 196px) 100vw, 196px\" \/><\/p><!--CusAds0-->\n<p>Enter a description<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3901\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Description\" width=\"636\" height=\"443\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all 636w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description-300x209.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description-178x124.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all&amp;w=127 127w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all&amp;w=381 381w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all&amp;w=508 508w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Description.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/p>\n<p>Select when you want to run the task. In my case I run the backups monthly<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3907\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Task Trigger\" width=\"640\" height=\"441\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all 640w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-300x207.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-178x123.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all&amp;w=128 128w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all&amp;w=384 384w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all&amp;w=512 512w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Select the time and the months you want to run the task. I selected 11:00PM because this is a quite time where the PC is not being used.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3906\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Task Trigger Monthly\" width=\"641\" height=\"445\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all 641w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-300x208.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-178x124.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all&amp;w=128 128w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all&amp;w=384 384w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all&amp;w=512 512w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<p>Select the date when to run the backup. I selected the 1st of every month<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3905\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Task Trigger Monthly Days\" width=\"638\" height=\"442\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all 638w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days-300x208.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days-178x123.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all&amp;w=127 127w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all&amp;w=382 382w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all&amp;w=510 510w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Task-Trigger-Monthly-Days.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>Select the Action which is to Start a Program<\/p>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-full wp-image-3900\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Action Start Program\" width=\"639\" height=\"441\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all 639w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program-300x207.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program-178x123.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all&amp;w=127 127w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all&amp;w=383 383w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all&amp;w=511 511w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Action-Start-Program.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p>Select the file where the Visual Basic Script is located<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3904\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Program\" width=\"637\" height=\"444\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all 637w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program-300x209.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program-178x124.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all&amp;w=127 127w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all&amp;w=382 382w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all&amp;w=509 509w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Program.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/p>\n<p>Click on Finish.<\/p>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-full wp-image-3902\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Finish\" width=\"640\" height=\"445\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all 640w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish-300x209.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish-178x124.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all&amp;w=128 128w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all&amp;w=384 384w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all&amp;w=512 512w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Finish.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Your task will then be listed in the Task Scheduler Library like this.<\/p>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-full wp-image-3903\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed.png?strip=all\" alt=\"WAMP Backup Scheduled Tasks Listed\" width=\"734\" height=\"310\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed.png?strip=all 734w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed-300x127.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed-178x75.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed.png?strip=all&amp;w=440 440w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/10\/WAMP-Backup-Scheduled-Tasks-Listed.png?strip=all&amp;w=587 587w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<h2>CONCLUSION<\/h2>\n<p>There are a number of ways to backup WAMP, this includes using other paid Software Tools. There may be some that are FREE but I prefer to keep it simple and use batch files.<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">RESOURCES<\/div><div class=\"lt-box-content\">List of resources related to this article:<\/p>\n<p><a href=\"http:\/\/www.7-zip.org\/download.html\" target=\"_blank\">7-zip application<\/a> &#8211; open source tool to backup files<\/p>\n<p><a href=\"http:\/\/www.gzip.org\/#exe\" target=\"_blank\">GZIP tool<\/a> &#8211; to compress databases. You can then use 7-zip to uncompress<\/p>\n<p><a href=\"http:\/\/www.wampserver.com\/en\/\" target=\"_blank\">WAMP<\/a> &#8211; A Windows Based web server environment<\/p>\n<p>Backup Batch File &#8211; Example batch file I used to run the database and file backups <div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\"   src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/arrow_down.png?strip=all&w=960\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/www.businesslegions.com\/blog\/download\/wamp-backup-batch-example\/'>WAMP Backup Batch Example<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 0.72 KB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/www.businesslegions.com\/blog\/download\/wamp-backup-batch-example\/?wpdmdl=3911&refresh=69f3df0695b0d1777590022\">WAMP Backup Batch File<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div>\n<p>Backup Visual Basic Script &#8211; Example Visual Basic File I used to run the batch file\u00a0<div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\"   src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/arrow_down.png?strip=all&w=960\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/www.businesslegions.com\/blog\/download\/wamp-backup-visual-basic-script\/'>WAMP Backup Visual Basic Script<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 0.16 KB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/www.businesslegions.com\/blog\/download\/wamp-backup-visual-basic-script\/?wpdmdl=3913&refresh=69f3df069aab21777590022\">WAMP Backup VBS<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div>\n<\/div><\/div>\n<p>&nbsp;<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I managed to figure out a way to backup the WAMP files and databases by using the Windows Task Scheduler and a batch file. The batch file includes using mysqldump (already part of the WAMP install), 7-zip (a free open source compression tool) and gzip (for the database compression). BATCH FILE Let&#8217;s have a look [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3916,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1691],"tags":[1970,616,1972,497,412,1608,747,1971,479,783,1877,1876,1609,180],"class_list":["post-3892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-tip-and-tricks","tag-7zip","tag-backup","tag-batch","tag-database","tag-file","tag-gzip","tag-mysql","tag-scheduler","tag-script","tag-task","tag-vbs","tag-visual-basic-script","tag-wamp","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/3892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=3892"}],"version-history":[{"count":12,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/3892\/revisions"}],"predecessor-version":[{"id":3932,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/3892\/revisions\/3932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/3916"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=3892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=3892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=3892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}