Re: [BackupPC-users] BUG with files of form '-i'

2008-12-29 Thread Craig Barratt
Jeff Kosowsky writes:

 I add an (empty) file named '-i' in several of my key Linux
 directories to prevent inadvertent rm * calamities.
 
 However, BackupPC doesn't seem to like this, giving me error messages
 of form:
Can't open /var/lib/BackupPC//pc/mycomputer/new/f%2fetc/f-i for empty
output\n
 
 Then, when I look in the backup directory
/var/lib/BackupPC.jnew.clean/pc/mycomputer/0/f%2fetc
 I cannot find the file '-i' backed up (though everything else is ok).

Sorry about the delay in getting back to you on this.

I'm trying to replicate this but without success.  If I create
an empty -i file in a directory that has other files, then
both full and incremental backups work on my set up.

Let's take this off list and figure out how I can replicate it.
At a minimum, can you restrict the backup to just /etc and
increase XferLogLevel to, say, 6 and send me the XferLOG file?

Craig

--
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] BUG with files of form '-i'

2008-10-06 Thread Jeffrey J. Kosowsky
I add an (empty) file named '-i' in several of my key Linux
directories to prevent inadvertent rm * calamities.

However, BackupPC doesn't seem to like this, giving me error messages
of form:
   Can't open /var/lib/BackupPC//pc/mycomputer/new/f%2fetc/f-i for empty
   output\n

Then, when I look in the backup directory
   /var/lib/BackupPC.jnew.clean/pc/mycomputer/0/f%2fetc
I cannot find the file '-i' backed up (though everything else is ok).

I am using the 'rsync' transfer method over NFS.

Note when I manually run a similar  rsync statement from the console,
there are no problems.

sudo -u backuppc rsync -vx  --numeric-ids --perms --owner --group -D --links 
--hard-links --times --block-size=2048 --recursive --omit-dir-times [EMAIL 
PROTECTED]:/etc/ /var/lib/BackupPC/pc/mycomputer/temp
receiving file list ... done
-i
.pwd.lock
DIR_COLORS
DIR_COLORS.xterm
Trolltech.conf
a2ps-site.cfg
a2ps.cfg
adjtime
aliases
aliases.db
aliases.jnew
aliases.jorig
anacrontab
...

So, I am wondering whether it is a quoting issue where somehow the
shell is interpreting the '-' rather than seeing it as part of the filename.

Any ideas on how to fix this?

Thanks!

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/