Skip to content

Instantly share code, notes, and snippets.

@catalincezarene
catalincezarene / Backup-and-restore-a-MariaDB-MySQL-database-running-in-a-Docker-container.md
Last active November 29, 2023 20:06
Backup and restore a MariaDB/MySQL database running in a Docker container

Dump your DB running in a Docker container using the native MariaDB/MySQL mysqldump command

docker exec <container> \
  mysqldump \
    --user=<username> \
    --password=<password> \
    --single-transaction \
    <db_name> | gzip > <dump_name>.sql.gz
@catalincezarene
catalincezarene / Install-an-Adobe-Commerce-on-premises-project.md
Created October 19, 2021 01:46
Install an Adobe Commerce on-premises project

Create a project using Composer OR

docker run \
  --rm \
  --interactive \
  --tty \
  --user $(id -u):$(id -g) \
  --volume $PWD:/app \
  composer sh -c '
function FindProxyForURL(url, host) {
var ProxyConfig = "DIRECT";
if (dnsDomainIs(host, "localhost.vps-3fda5bde.machine.catalincezarene.com")) {
ProxyConfig = "SOCKS5 127.0.0.1:9900; SOCKS 127.0.0.1:9900";
}
return ProxyConfig;
}