Can scp copy directories recursively?

Yup, use -r: scp -rp sourcedirectory user@dest:/path -r means recursive -p preserves modification times, access times, and modes from the original file. Note: This creates the sourcedirectory inside /path thus the files will be in /path/sourcedirectory

How can I sort du -h output by size

As of GNU coreutils 7.5 released in August 2009, sort allows a -h parameter, which allows numeric suffixes of the kind produced by du -h: du -hs * | sort -h If you are using a sort that does not support -h, you can install GNU Coreutils. E.g. on an older Mac OS X: brew … Read more

A shorter way to automatically update WordPress?

If you have this statement (by default) in your wp-config file define( ‘WP_AUTO_UPDATE_CORE’, true ); Then WP core files are automatically updated for you. This assumes that you have traffic to your site (if nobody ever visits your site, the updates won’t happen.) So your solution is actually causing more work by the server, and … Read more

A /proc folder in wp-content?

Check the .htaccess file first, and the Settings > General area first to make sure it’s not a level of security-by-obscurity that one of the initial users tried to implement. The easiest way is to change the name of the folder then see if your site breaks, since you can rename a folder a lot … Read more

Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3

I mean your php.ini is changed, check for the entry extension=php_mysqll.dll. (If you has no knowledge where is your used php.ini – see https://stackoverflow.com/questions/8684609/dude-wheres-my-php-ini) Is this entry active, has no ; before the string. After change of the php.ini you need a restart of mysql, like sudo /etc/init.d/mysql restart. Also a note, check that mysql … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)