Skip to content

Instantly share code, notes, and snippets.

View korbax's full-sized avatar

Aleksandr Drobot korbax

View GitHub Profile
@korbax
korbax / backup_mysqldb.sh
Created July 6, 2019 12:07 — forked from skarllot/backup_mysqldb.sh
Bash script to backup all mysql databases thru mysqldump
#!/bin/bash
# Destiny folder where backups are stored
DEST=/tmp/bacula/server01
CURRDATE=$(date +"%F")
# Hostname where MySQL is running
HOSTNAME="srv-mysql"
# User name to make backup
USER="root"
@korbax
korbax / magento_urls.php
Created August 20, 2020 09:35 — forked from RiccardoB/magento_urls.php
Get all Magento URLs by store view
<?php
require_once 'app/Mage.php';
umask(0);
// set store view
$store_view_filter = isset($_REQUEST['store_view']) ? $_REQUEST['store_view'] : false;
// set export type
$export_to = isset($_REQUEST['export_to']) ? $_REQUEST['export_to'] : false;