This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Backups Folder | |
| cd /backups/mysql/ | |
| # Get list of databases | |
| LISTEBDD=$( echo 'show databases' | mysql -uroot -p'techbyvideo' ) | |
| # Save the current date | |
| DATE=`date +%y_%m_%d` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Library to create a web server | |
| var http = require('http'); | |
| // Create your HTTP server | |
| var server = http.createServer(function(request, response){ | |
| //Sends a response header to the request | |
| response.writeHead(200, {'Content-Type': 'text/plain'}); |