You are hereBlogs / My blog / hutcho's blog

hutcho's blog


How to copy filename with spaces using rsync

Putting rsync script with spaces in filename in bash.

Finally found answer here:
http://lists.samba.org/archive/rsync/2002-January/001217.html
http://lists.samba.org/archive/rsync/2002-January/001219.html

On the command line, or explicitly in a script, it works fine, however when I invoke it from a script it throws errors.

Key is to use the "eval" keyword, see example below.

#!/bin/bash

# --------------------------------
# Edit the three settings below.
# --------------------------------

#
# Define home location
#
home="/home/hutcho"

#

How to clear watchdog and sessions tables in drupal

Recently my development watchdog table reached almost 2GB.

A quick fix is to run the SQL command: "truncate table watchdog"

More tips here: http://drupal.org/node/148461