Skip to content

Instantly share code, notes, and snippets.

View pacoorozco's full-sized avatar
🦄
Enjoying!

Paco Orozco pacoorozco

🦄
Enjoying!
View GitHub Profile
@pacoorozco
pacoorozco / wp-update.sh
Last active July 7, 2024 20:04
Backup and update a Wordpress Site using wp-cli
#!/usr/bin/env bash
##########################################################################
# Shellscript: Backup and update WordPress using wp-cli
# Author : Paco Orozco <[email protected]>
# Requires : wp-cli
##########################################################################
# Changelog
# 20170125: 1.0
# Adds a default option to upgrade only when it's needed.
# 20161220: 0.1
@pacoorozco
pacoorozco / update-all-wp.sh
Last active January 25, 2017 15:43
Update several Wordpress Sites from a location using wp-update.sh
#!/usr/bin/env bash
##########################################################################
# Shellscript: Update WordPress sites recursively from a directory
# Author : Paco Orozco <[email protected]>
# Requires : wp-cli, wp-update.sh
##########################################################################
# Changelog
# 20161220: 0.1
# Inital release
##########################################################################
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"