Categories: Development

WordPress Full Backup via Server


A simple WordPress Full Backup Script, (Database & files).

GitHub https://github.com/garanet/Wordpress-bkp-script.git

A simple WordPress Full Backup Script, (Database & files).

If you manage your WebServer directly or manage a virtual machine or a dedicated server, you can use this script as a cronjob to backup files and databases of your website, in this case in WordPress.

wordpress-backup-garanet
wordpress-backup-garanet

@Steps

~:$ git clone https://github.com/garanet/Wordpress-bkp-script.git

~:$ cd WordPress-bkp-script/

~:$ sudo su

~:$ mkdir /backup

~:$ mkdir /backup/db

~:$ mkdir /backup/www

~:$ mv wordpress_bkp.sh /backup

~:$ cd /backup

~:$ chmod a+x wordpress_bkp.sh

~:$ vi wordpress_bkp.sh <- Change the variables

~:$ sh wordpress_bkp.sh

Now you can enter it in your Crontab

~:$ sudo crontab -e

www.garanet.net


Share

Recent Posts

FastAPI, SQLAlchemy & Uvicorn

A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet… Read More

Client TrueNas & Ldap with python Flask

A webtool in Python Flask that creates an LDAP user and his TrueNAS shares pool in ISCSI or NFS. There… Read More

Simple Terraform configuration

A Terraform configuration that provisions the following infrastructure: A VPC with: Public subnets for external resources. Private subnets for internal… Read More