Giter Site home page Giter Site logo

cloudpanel_wp_scripts's Introduction

CloudPanel_WP_Scripts

This is a few scripts I'm using to improve my workflow with CloudPanel.io

They require to have a sudo ssh access, and WP CLI installed and given the 'wp' name - which can be done with the following commands :

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

Also, WP-CLI doesn't as of today support PHP 8.0, so PHP 7.4 has to be used at system level, which can be done with the following commands :

sudo update-alternatives --set php /usr/bin/php7.4
sudo update-alternatives --set phar /usr/bin/phar7.4
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4

The files in the cloudpanel folder can be copied to the /home/cloudpanel folder and are destined to be used by CRON (which can be set in CloudPanel). The nightly file saves the whole Wordpress file folder in a single encrypted tar.gz.enc file, which can then be stored on your favorite cloud storage (Backblaze B2 works great). The monthly & weekly file save the latest file to the monthly and weekly folder, respectively.

Also, the scripts require the sample_secrets.sh to be renamed to secrets.sh and updated with the root user of your DB. Details in the file itself.

cloudpanel_wp_scripts's People

Contributors

papypom avatar

Stargazers

Samet Yiğit avatar Ali Khallad avatar  avatar Rodolfo Berrios avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.