[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] how to use wildcird to include hidden config fi
Re: [rdiff-backup-users] how to use wildcird to include hidden config files from home folder
Sun, 03 Feb 2013 17:40:40 +0100
> rdiff-backup --print-statistics --terminal-verbosity 2 \
> --include ~/Documents/Magveda\,\ UAB/rastai/ \
> --include ~/Documents/Magveda\,\ UAB/saskaitos/ \
> --include ~/.fonts \
> --include ~/.vim \
> --include ~/.config/mc \
> --include "~/.bash*" \
> --exclude '**' \
> ~/ ~/Backup/
> I get error:
> Fatal Error: Fatal Error: The file specification
> cannot match any files in the base directory
> What is wrong here?..
In the "~/.bash*" case the quotes makes rdiff-backup handle the path
without doing any shell expansion, which is necessary for the * wildcard
to work as intended. The downside being that rdiff-backup has no idea
what to do the ~ reference.
Luckily, as long as you use regular quotes variables will still be
expanded. Hence, the following will do the trick.
--include "$HOME/.bash*" \