tar --exclude='wp-content/uploads/backupbuddy_backups' --exclude='wp-content/uploads/backwpup-4a2f83-backups' --exclude='wp-content/uploads/backupbuddy_temp' --exclude='wp-content/uploads/2018/09' --exclude='wp-content/uploads/2018/08' --exclude='wp-content/uploads/2018/07' --exclude='wp-content/uploads/2018/06' --exclude='wp-content/uploads/2018/05' --exclude='wp-content/uploads/2018/04' --exclude='wp-content/uploads/2018/03' --exclude='wp-content/uploads/2018/02' --exclude='wp-content/uploads/2018/01' --exclude='wp-content/uploads/2017' --exclude='wp-content/uploads/2016' --exclude='wp-content/uploads/2015' --exclude='wp-content/uploads/2014' --exclude='wp-content/uploads/2013' --exclude='wp-content/uploads/2012' -zcvf wp-content-prod.tar.gz wp-content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* lookforbadguys.php 2011-09-27 | |
Copyright (C)2011 Karen Chun, Steven Whitney. | |
Initially published by http://25yearsofprogramming.com. | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License (GPL) | |
Version 3 as published by the Free Software Foundation. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |