Once you have done installing all the required tools, we can start using the script. If it is not yet installed, this is how you install it: wget -O wp If you are using tools like WordOps, it is probably already installed for you, just try to run the command “wp” to confirm. If you are on Oracle ARM instances, get the ARM version, but for regular Intel/AMD servers, just get the AMD version: Plus, it is easy to delete old backups with retention policy.ĭownload the right distribution for your server. The reason I use duplicacy is that it’s fast, and I am more familiar with it as I use it on many other projects as well. Remote backup storage of your choice (I use IBM Object Storage & Microsoft Sharepoint)įirst, we’ll install zstd which is used for backup file compression, it is faster than gzip, but if you want to use gzip, just comment out the line in the script and uncomment the one using gzip. ![]() This script requires having the below tools installed and Duplicacy initialized, and it’s recommended to backup to at least 2 remote storage for redundancy. Hence I made this little script to help me simplify the process. ![]() If you are self hosting and managing your own WordPress, whether on a simple LEMP stack or using tools like WordOps, Webinoly, Easy Engine, or other similar tools, then this simple backup script might be useful for you.įor some reason, I move my WordPress from server to server quite often and change between stack or tools as well, which means backup is quite important to me. Facebook LinkedIn WhatsApp Telegram Messenger Copy
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |