Re: [BackupPC-users] smb files truncated

2007-03-01 Thread OverlordQ
Jason Hughes wrote:
 All versions of Windows have a limit of 250-ish characters maximum for a 
 full path, including the filename and extension, regardless of file 
 system.  I'm not aware of a lower limit imposed by the file system or 
 OS, but it's likely related.  Are you running Unicode-16 character set 
 or UTF-16 on the server or Windows box, perhaps?  That might halve the 
 limit--I'm not sure.
 
 Hope that helps,
 JH
 
 Brendan Simon wrote:
 I'm get xfer errors on long path/filenames.  total length is over 100 chars.
 Is there a limit on the total path/filename size ???

 Example error:

 Read error: Connection reset by peer opening remote file 
 \bjsimon\ABCD\svn-sandbox\branches\firmware\P20-NiceBigProject-2\F1234.humongous-mutation\project\F1234\src\datapath\src\rx_manager\src\r
  
 (\bjsimon\CTAM\svn-sandbox\branches\firmware\P20-NiceBigProject-2\F1234.humongous-mutation\project\F1234\src\datapath\src\rx_manager\src\)

 There are 6 files in that directory starting with 'r'.
 Examples:
 rx_foo1.v
 rx_foo2.v

 How can I get backuppc to backup long windows xp file names?
 Is it a length problem or some other issue?

 Thanks,
 Brendan.



In the Windows API, the maximum length for a path is MAX_PATH, which is
defined as 260 characters. A path is structured in the following order:
drive letter, colon, backslash, components separated by backslashes, and
a null-terminating character, for example, the maximum path on the D
drive is D:\256 charsNUL.

The Unicode versions of several functions permit a maximum path length
of approximately 32,000 characters composed of components up to 255
characters in length. To specify that kind of path, use the \\?\ prefix.

http://msdn2.microsoft.com/en-us/library/aa365247.aspx

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] smb files truncated

2007-03-01 Thread Jason Hughes
OverlordQ wrote:
 The Unicode versions of several functions permit a maximum path length
 of approximately 32,000 characters composed of components up to 255
 characters in length. To specify that kind of path, use the \\?\ prefix.

 http://msdn2.microsoft.com/en-us/library/aa365247.aspx

   
Thanks for looking that up.  The relevant bits were actually on that 
page.  The question was whether a file length limit was interceding to 
prevent backups from occurring correctly.  I suggested perhaps UTF-16 or 
Unicode might be causing trouble, if set as the codepage on some 
system.  From MSDN:

Windows stores the long file names on disk in Unicode, which means that 
the original long file name is always preserved, even if it contains 
extended characters, and regardless of the code page that is active 
during a disk read or write operation. The case of the file name is 
preserved, but the file system is not case-sensitive.

So, it's highly unlikely this is the case, as the long filenames are 
already stored as Unicode on disk.

JH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Data Directory

2007-03-01 Thread Ludovic Gele
Selon Holger Parplies [EMAIL PROTECTED]:

 Hi,
 
 Ludovic Gele wrote on 28.02.2007 at 11:04:07 [[BackupPC-users] Data
 Directory]:
  I've install backuppcpc on debian stable, and I would like to change the
 data
  directory location. I've try dpkg-reconfigure backuppc, and read the
  /etc/backuppc/config.pl, but I've found nothing. I think I (maybe) can do
 a
  symbolic link, but I'm not sure that's a clean way.
 
 from BackupPC's point of view it is. From the package management system's
 point of view it would probably be cleaner to mount your destination
 partition
 (if it is a whole partition) on /var/lib/backuppc or to use a bind-mount
 (if
 it is not a whole partition). Copy (or move) anything the package put under
 /var/lib/backuppc over to the new destination first (or even establish the
 mount before installing the package). You probably do not have a populated
 pool there yet, so that should not be a problem.

Thanks for your help :D

-- 
 Cordialement

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC-users Digest, Vol 10, Issue 36

2007-03-01 Thread Reef Morse
Bingo!  That was it.  I set the permissions of SELinux to permissive and 
everything worked hunky dory.

Setting up rsyncd on the Windows machine has been a bit of a challenge, but it 
seems to be working now.  Here's the rsyncd.conf file that I'm using:

use chroot = false
strict modes = false
hosts allow *
log file = rsync.log
pid file = rsync.pid
#Module definitions
[BackupArea]
path = cygdrive/c/
read only = false
transfer logging = yes
secrets file = /cygdrive/c/Program Files/cwRsyncServer/rsyncd.secrets

Secrets file is

Administrator:mypassword

Both user Administrator and cwRsyncServer are set up with administrative 
priviliges.  The secrets file is hidden,

DON'T put the module name in quotes.  It should be 'BackupArea', NOT 
BackupArea.+


 
Reef Morse, PhD
 President, Scientific Software Services
 42583 Five Mile Road
 Plymouth, MI 48170-2545
 USA
 Phone and FAX 734 420 3528



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Unexpected instant exit?

2007-03-01 Thread James Ward
I'm backing up over 200 hosts to three big BackupPC servers.  I added  
5 new clients today and all five are exhibiting the same strange exit  
with no discernable errors.

All machines concerned are running debian sarge and BackupPC is  
2.1.1.  The config file shared for the five boxes:

$Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/mysql', '/ 
dgisi'];

The command to run is:

sudo /var/backups/rsyncSend --server --sender --numeric-ids --perms -- 
owner --group --devices --links --times --block-size=2048 --recursive  
--exclude=/proc --exclude=/sys --exclude=/var/lib/mysql --exclude=/ 
dgisi --ignore-times . /

rsyncSend is:

#!/bin/sh -f
exec /usr/bin/rsync $*

An example error log is:

Contents of file /var/lib/backuppc/pc/dg1.chinoc.net/XferLOG.bad.z,  
modified 2007-03-01 14:24:54 (Extracting only Errors)

Running: /usr/bin/ssh -c arcfour -p 8889 -q -x -l backup  
dg1.chinoc.net sudo /var/backups/rsyncSend --server --sender -- 
numeric-ids --perms --owner --group --devices --links --times --block- 
size=2048 --recursive --exclude=/proc --exclude=/sys --exclude=/var/ 
lib/mysql --exclude=/dgisi --ignore-times . /
Xfer PIDs are now 6052
Got remote protocol 29
Negotiated protocol version 26
Sent exclude: /proc
Sent exclude: /sys
Sent exclude: /var/lib/mysql
Sent exclude: /dgisi
fileListReceive() failed
Done: 0 files, 0 bytes
Got fatal error during xfer (fileListReceive failed)
Backup aborted (fileListReceive failed)

I seem to be able to run the command manually, no problem ( I do  
interrupt it after a couple of minutes).  When I start a backup from  
the web interface, it exits almost immediately.

Any ideas what could be wrong?

Thanks in advance,

James

P.S. I see that rsync is 2.6.4 on the server and 2.6.9 on these new  
clients.  Is this a problem?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Unexpected instant exit?

2007-03-01 Thread Holger Parplies
Hi,

James Ward wrote on 01.03.2007 at 14:35:50 [[BackupPC-users] Unexpected instant 
exit?]:
 [...]
 sudo /var/backups/rsyncSend --server --sender --numeric-ids --perms -- 
 owner --group --devices --links --times --block-size=2048 --recursive  
 --exclude=/proc --exclude=/sys --exclude=/var/lib/mysql --exclude=/ 
 dgisi --ignore-times . /
 
 [...]
 
 Got remote protocol 29
 Negotiated protocol version 26
 [...]
 fileListReceive() failed
 Done: 0 files, 0 bytes
 [...]
 Any ideas what could be wrong?

same as with the last 732439087 times this was asked: s/--devices/-D/

Regards,
Holger

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Fatal error for empty directory

2007-03-01 Thread Brendan Simon
I'm getting a fatal error when backing up an empty directory.
BackupPC server is running Debian Sarge (backuppc 2.1.1-2sarge2)
Server being backed up is running Debian Etch (rsync 2.6.9-2)

Surely it must be legitimate to backup up an empty directory.  Is this a 
bogus error message or maybe rsync rysnc returns an error code that 
older backuppc versions don't handle correctly ???

Any ideas how to fix this (besides removing the share from the backup 
list) ???

Done: 89 files, 26547311 bytes
Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group -D --links --times --block-size=2048 
--recursive --one-file-system --ignore-times . /srv/
Xfer PIDs are now 3934
Got remote protocol 29
Xfer PIDs are now 3934,3935
  create d 755   0/04096 .
Done: 0 files, 0 bytes
Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group -D --links --times --block-size=2048 
--recursive --one-file-system --ignore-times . /opt/
Xfer PIDs are now 3936
Got remote protocol 29
Xfer PIDs are now 3936,3937
  create d 755   0/04096 .
Done: 0 files, 0 bytes
Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group -D --links --times --block-size=2048 
--recursive --one-file-system --ignore-times . /initrd/
Xfer PIDs are now 3938
Got remote protocol 29
Xfer PIDs are now 3938,3939
  create d 755   0/04096 .
Done: 0 files, 0 bytes
Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group -D --links --times --block-size=2048 
--recursive --one-file-system --ignore-times . /emul/
Xfer PIDs are now 3940
Got remote protocol 29
Xfer PIDs are now 3940,3941
  snip
Done: 247 files, 6989413 bytes
Got fatal error during xfer (No files dumped for share /srv)
Backup aborted (No files dumped for share /srv)
  


Thanks,
Brendan.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fatal error for empty directory

2007-03-01 Thread Jason Hughes
If the whole share is empty, that is considered indistinguishable from a 
general failure.  You can control that with 
$Conf{BackupZeroFilesIsFatal}.  Check the docs for more details.

JH

Brendan Simon wrote:
 I'm getting a fatal error when backing up an empty directory.
 BackupPC server is running Debian Sarge (backuppc 2.1.1-2sarge2)
 Server being backed up is running Debian Etch (rsync 2.6.9-2)

 Surely it must be legitimate to backup up an empty directory.  Is this a 
 bogus error message or maybe rsync rysnc returns an error code that 
 older backuppc versions don't handle correctly ???

 Any ideas how to fix this (besides removing the share from the backup 
 list) ???

 Done: 89 files, 26547311 bytes
 Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server 
 --sender --numeric-ids --perms --owner --group -D --links --times 
 --block-size=2048 --recursive --one-file-system --ignore-times . /srv/
 Xfer PIDs are now 3934
 Got remote protocol 29
 Xfer PIDs are now 3934,3935
   create d 755   0/04096 .
 Done: 0 files, 0 bytes
 Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server 
 --sender --numeric-ids --perms --owner --group -D --links --times 
 --block-size=2048 --recursive --one-file-system --ignore-times . /opt/
 Xfer PIDs are now 3936
 Got remote protocol 29
 Xfer PIDs are now 3936,3937
   create d 755   0/04096 .
 Done: 0 files, 0 bytes
 Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server 
 --sender --numeric-ids --perms --owner --group -D --links --times 
 --block-size=2048 --recursive --one-file-system --ignore-times . /initrd/
 Xfer PIDs are now 3938
 Got remote protocol 29
 Xfer PIDs are now 3938,3939
   create d 755   0/04096 .
 Done: 0 files, 0 bytes
 Running: /usr/bin/ssh -q -x -l root chief /usr/bin/rsync --server 
 --sender --numeric-ids --perms --owner --group -D --links --times 
 --block-size=2048 --recursive --one-file-system --ignore-times . /emul/
 Xfer PIDs are now 3940
 Got remote protocol 29
 Xfer PIDs are now 3940,3941
   snip
 Done: 247 files, 6989413 bytes
 Got fatal error during xfer (No files dumped for share /srv)
 Backup aborted (No files dumped for share /srv)
   


 Thanks,
 Brendan.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 BackupPC-users mailing list
 BackupPC-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/backuppc-users
 http://backuppc.sourceforge.net/

   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/