Skip to content

Instantly share code, notes, and snippets.

View mauamolat's full-sized avatar

mauamolat mauamolat

View GitHub Profile
@mauamolat
mauamolat / upload.php
Created November 24, 2023 17:07 — forked from antelove19/upload.php
PHP Script to upload files via FTP
<?php
// Ref : http://php.net/manual/en/function.ftp-put.php
$name = "test.txt";
$filename = "/home/mine/Desktop/test.txt";
//-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --//
//-- Connection Settings
$ftp_server = "server_url_here"; // Address of FTP server.
$ftp_user_name = "username_here"; // Username
@mauamolat
mauamolat / how-to-backup-docker-volume-volumerize.md
Created August 12, 2023 15:17 — forked from rockerBOO/how-to-backup-docker-volume-volumerize.md
How to backup a Docker volume using Volumerize

How to backup a Docker Volume

Docker supports volumes for storing data across containers. This also allows us to mount the volume in a docker container to backup this volume. Using Volumerize we can mount our volume and back it up to a separate volume or many backend options.

Volumerize is a docker container that can attach your docker volumes and backup the files of the volume. It does this with a cronjob in the container or runs manually.

Volumerize uses Duplicity to make the actual backup. Supports many backup backend options like S3, Dropbox, and the local file system.

@mauamolat
mauamolat / docker_wordpress.md
Created July 30, 2023 06:40 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes