From: Bowie B. <Bowie_Bailey@BUC.com> - 2011-09-19 17:04:17
|
On 9/19/2011 11:16 AM, Raman Gupta wrote: > On 09/18/2011 10:29 PM, Adam Monsen wrote: >> AHA, adding the following entry to BackupFilesOnly '*' worked: >> >> /opt/backup/stage/other/* >> >> Now that directory is backed up. But I don't understand why. :) > Because > > /opt/backup/stage/other > > backs up the directory entry itself, but not its contents. > > /opt/backup/stage/other/* > > backs up the directory entry and contents but not subdirectories. > > /opt/backup/stage/other/** > > backs up the directory and all contents, including subdirectories. > > Do "man rsync" and check out the section "INCLUDE/EXCLUDE PATTERN RULES". That's not the behavior that I'm seeing. I have a linux host that I am backing up via rsyncd. BackupFilesOnly includes "/etc" and a couple of other directories. This successfully backs up the entire subtree on all three specified directories. No asterisks required anywhere. -- Bowie |