02-12-2010
Hello,
you can use --exclude-regexp if you dont have any files starting with a dot in the current directory. so the glob would not be expanded
args="--include /home --exclude-regexp '.*'"
One question: why do you need to have --exclude? Is duplicity recursive in nature.?
anyways I hope that solves your problem.
Regards,
Gaurav.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following situation
============
export DirectoryName=/tmp/xyz
if ; then
some_new_env=$DirectoryName"/*"
=======================
I tried all the ways of escaping the '*', but still the shell seems to expand the '*' character. I want some_new_env to contain "/tmp/xyz/*"
... (7 Replies)
Discussion started by: rkshukla14
7 Replies
2. Shell Programming and Scripting
hi,
echo 'abc' will give output abc
how can i get output as 'abc'
plz help. thanks in advance (3 Replies)
Discussion started by: javeed7
3 Replies
3. Shell Programming and Scripting
Hi All,
In ksh script i'm trying to assign "sqlstmt1" varaible value,
update VAREntryTb set VAR10num = VAR1num * Mltplr where BusD = '$val1' and RunI = 1"`
Hence i wrote below statement, the issue with this is shell is expanding "*" character adn thus subistuting it with the content of my... (6 Replies)
Discussion started by: arvindcgi
6 Replies
4. UNIX for Dummies Questions & Answers
I have a variable containt something like this, c:\mask\mask. How can I escape "\" in the values? I want the value as it it. (9 Replies)
Discussion started by: swmk
9 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have pipe delimited file in which some of the description fields can have commas. e.g.
1|123|abc,def
2|456|qwert
3|345|aty,try,rty
I need to convert this to a 'csv' file BUT i need to add \ before every comma present in the description values (so that my next program can read it as... (3 Replies)
Discussion started by: dsrookie
3 Replies
6. Shell Programming and Scripting
I'm cleaning this from some html files
style=''
but when I try
's/style=\'\''//'
I get an unmatched ' error (4 Replies)
Discussion started by: dba_frog
4 Replies
7. Shell Programming and Scripting
Hi
I use :
path=/var/www/admin
echo "$path" | sed -e 's/\//\\\//g'
this return
\/var\/www\/admin
and is ok.
but
path2=`echo "$path" | sed -e 's/\//\\\//g'`
echo $path2
return an error:
sed: -e expression #1, char 9: unknown option to `s'
Can anyone help me?
Thanks (3 Replies)
Discussion started by: georgian
3 Replies
8. Shell Programming and Scripting
So I understand that I should be able to ouput a literal \ by escaping it with a preceding \. My problem is that I am trying to ouput a script that will subsequently be run on a different system with UNC pathing, so I want to ouput two \\ in a row, but escaping them both in sequential order is not... (4 Replies)
Discussion started by: JourneyRider
4 Replies
9. UNIX for Beginners Questions & Answers
I would like to open a text m3u file and add the same string to the beginning of each line. I think I am close, but I cannot figure out how to escape the ampersand in the following code:
gawk-3.1.6.exe "{print /var/media/Music2.0TB2.1USB/Audio Files/Music/Rock & Roll/ $0}" "L:\Music\Rock &... (7 Replies)
Discussion started by: WarpLover
7 Replies
10. Shell Programming and Scripting
./split2.sh: line 1: split/ssl/pop3s.txt: No such file or directory
sort: cannot read: split/ssl/pop3s.txt: No such file or directory
Hi there,
I am pulling data from the following source:
ssl/http
ssl/http
ssl/http-alt
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https... (3 Replies)
Discussion started by: alvinoo
3 Replies
LEARN ABOUT DEBIAN
rdiffdir
RDIFFDIR(1) User Manuals RDIFFDIR(1)
NAME
rdiffdir - compute and apply signatures and diffs to directories
SYNOPSIS
rdiffdir [options] sig[nature] basis_dir signature_file
rdiffdir [options] delta signature_file new_dir delta_file
rdiffdir [options] patch basis_dir delta_file
rdiffdir [options] tar basis_dir tar_file
If signature_file or delta_file are "-", the data will be read from stdin or written to stdout as appropriate.
DESCRIPTION
rdiffdir is supposed to be like rdiff, but can operate on directories. See rdiff(1) for more information. The syntax is similar.
OPTIONS
--write-sig-to sigfile
This option is only used in delta and tar modes. When specified, rdiffdir will write a signature of the directory it is processing
to sigfile. The end result will be a delta and a new signature calculated over the same data.
-z, --gzip-compress
Enable gzip compression and decompression of signature and delta files.
SELECTION OPTIONS
In signature and delta modes, rdiffdir accepts duplicity-like selection options including --exclude, --exclude-filelist-stdin, etc. See
the duplicity(1) manual page for more information.
BUGS
Hard links are currently unsupported (they will be treated as non-linked regular files).
Bad signatures will be treated as empty instead of logging appropriate error message.
AUTHOR
Ben Escoto <bescoto@stanford.edu>
SEE ALSO
duplicity(1), python(1), rdiff(1), rdiff-backup(1).
Version 0.6.18 February 29, 2012 RDIFFDIR(1)