ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Hack:   Mirroring Files and Directories with rsync
Subject:   Excluding the Trash directory
Date:   2003-07-31 09:57:16
From:   warnero
I am trying this hack out for the first time with the exlude option and I can't get it to not include the Trash.


Here's the hack
rsync -vaz --exclude=~/.Trash/ ~/ /Volumnes/Backup (external disk)


Any ideas?