Skip to content

Instantly share code, notes, and snippets.

@juanboterotech
juanboterotech / backup_wordpress.sh
Created January 5, 2024 04:05
Backup your WordPress website
#!/bin/bash
# get current date
now = `date +"%Y-%m-%d"`
# copying WordPress files inside public_html folder
cd ~/public_html
tar -zcf "~/wordpress_$_now.tar.gz" wordpress_folder
# Database backup with mysqldump
def hello_gist():
print("Hello Gist!")