sudo mysqldump -u root -p database_name > /var/www/dump/file_name.sql
sudo mysqldump -u root -p --all-databases > /var/www/dump/file_name.sql
npm install --save-dev imagemin-webpack-plugin copy-webpack-plugin imagemin-mozjpeg | |
const { mix } = require('laravel-mix'); | |
const ImageminPlugin = require('imagemin-webpack-plugin').default; | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const imageminMozjpeg = require('imagemin-mozjpeg'); | |
mix.webpackConfig({ | |
plugins: [ |
<script> | |
let map; | |
function initialize () { | |
const lat = 35.731671; | |
const lng = 51.380317; | |
const zoom = 17; | |
map = new google.maps.Map(document.getElementById('google_map'), { | |
center: {lat: lat, lng: lng}, | |
zoom: zoom, | |
mapTypeControl: false |
## Start |
#!/bin/bash | |
### Destination folder where backups are stored. | |
destination_root_path=/var/www/mysql_dump | |
date_dir=$(date +"%Y-%m-%d") | |
destination_dir=$destination_root_path/$date_dir | |
current_date=$(date +"%F") | |
### MySQL Configuration | |
db_host="localhost" |