Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 Thread Les Mikesell
On 7/27/2010 5:36 PM, Frank J. Gómez wrote:
>
> *With DHCP set to 1:*
>
> $ ./BackupPC_dump -v -f vostro1400
> cmdSystemOrEval: about to system /bin/ping -c 1 vostro1400
> cmdSystemOrEval: finished: got output PING vostro1400 (8.15.7.117)
> 56(84) bytes of data.
>
> It seems that, regardless of how the DHCP flag is set, BackupPC is going
> to ping the hostname.  In that case, why bother with nmblookup at all?
>   Where is the result of nmblookup used?  I don't understand.

Hmmm, maybe it tries DNS and only uses nmblookup if it fails.  Is there 
some reason your DNS is returning the wrong IP here instead of failing? 
  What 'search' domains do you have in /etc/resolv.conf where it must be 
finding a match?

You could just replace the ping command with something that would always 
succeed, but then timeouts would be slow when hosts were down.

-- 
   Les Mikesell
lesmikes...@gmail.com

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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/


Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 Thread Frank J . Gómez
/etc/hosts has entries only for 127.0.1.1.
/etc/resolv.conf points to local nameservers which don't have records for
these hosts.  The hosts in question are laptops, so it doesn't make much
sense to stick them in DNS.

hostname gives backuppc.  hostname -f gives backuppc.loc.

I'd like to be able to solve this problem without having to change the name
of every laptop in the organization, so the other suggestions are headed in
the wrong direction for me.

Thanks!
-Frank

On Tue, Jul 27, 2010 at 5:40 PM, Leen Besselink wrote:

> On 07/27/2010 10:28 PM, Les Mikesell wrote:
> > On 7/27/2010 1:46 PM, Frank J. Gómez wrote:
> >
> >> I have a new instance set up, and BackupPC is not initiating backups
> >> because pings keep failing.  The behavior is really quite strange;
> >> please read on:
> >>
> >> "nmblookup vostro1400" gives me 10.10.10.102.  This is correct.
> >>
> >> "nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.
> >>
> >> My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';
> >>
> >> The command "ping -c 1 vostro1400" gives:
> >>
> >>  PING vostro1400 (8.15.7.117) 56(84) bytes of data.
> >>
> >>
> >>  --- vostro1400 ping statistics ---
> >>
> >>  1 packets transmitted, 0 received, 100% packet loss, time 0ms
> >>
> >>
> >> What's up with that crazy IP address?  Why isn't ping resolving
> >> vostro1400 to 10.10.10.102?  (Shouldn't we be pinging the IP address
> >> instead of the hostname, anyway?)
> >>
> >> Any insight would be much appreciated.
> >>
> > That IP address is what a DNS lookup returns, so it depends on your dns
> > server and domain search list (as configured on the backuppc server).  I
> > thought it would use nmblookup if you checked the dhcp box in the
> > backuppc hosts config.  If it is a static IP, you can use the
> > ClientAlias setting to supply the IP if DNS doesn't work.
> >
> >
> So you should check your:
> /etc/resolv.conf
> /etc/hosts
>
> Possible use a fully qualified domainname:
> volstrol400.office
>
> An other tip, maybe add a . at the end, so that search from
> /etc/resolv.conf is not used
>
> Also have a look at the output of:
>
> $ hostname
>
> That should give you an idea of what it might be looking for and what it
> might find. :-)
>
>
>
> --
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> ___
> 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/
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
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/


Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 Thread Frank J . Gómez
*With DHCP set to 0:*

$ ./BackupPC_dump -v -f vostro1400
cmdSystemOrEval: about to system /bin/ping -c 1 vostro1400
cmdSystemOrEval: finished: got output PING vostro1400 (63.251.179.13) 56(84)
bytes of data.


*With DHCP set to 1:*

$ ./BackupPC_dump -v -f vostro1400
cmdSystemOrEval: about to system /bin/ping -c 1 vostro1400
cmdSystemOrEval: finished: got output PING vostro1400 (8.15.7.117) 56(84)
bytes of data.

It seems that, regardless of how the DHCP flag is set, BackupPC is going to
ping the hostname.  In that case, why bother with nmblookup at all?  Where
is the result of nmblookup used?  I don't understand.

Most of my clients have dynamic IPs, so clientAlias isn't going to work for
me.

On Tue, Jul 27, 2010 at 4:28 PM, Les Mikesell  wrote:

> On 7/27/2010 1:46 PM, Frank J. Gómez wrote:
> > I have a new instance set up, and BackupPC is not initiating backups
> > because pings keep failing.  The behavior is really quite strange;
> > please read on:
> >
> > "nmblookup vostro1400" gives me 10.10.10.102.  This is correct.
> >
> > "nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.
> >
> > My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';
> >
> > The command "ping -c 1 vostro1400" gives:
> >
> > PING vostro1400 (8.15.7.117) 56(84) bytes of data.
> >
> >
> > --- vostro1400 ping statistics ---
> >
> > 1 packets transmitted, 0 received, 100% packet loss, time 0ms
> >
> >
> > What's up with that crazy IP address?  Why isn't ping resolving
> > vostro1400 to 10.10.10.102?  (Shouldn't we be pinging the IP address
> > instead of the hostname, anyway?)
> >
> > Any insight would be much appreciated.
>
> That IP address is what a DNS lookup returns, so it depends on your dns
> server and domain search list (as configured on the backuppc server).  I
> thought it would use nmblookup if you checked the dhcp box in the
> backuppc hosts config.  If it is a static IP, you can use the
> ClientAlias setting to supply the IP if DNS doesn't work.
>
> --
>   Les Mikesell
>lesmikes...@gmail.com
>
>
>
>
> --
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> ___
> 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/
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
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/


Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 Thread Leen Besselink
On 07/27/2010 10:28 PM, Les Mikesell wrote:
> On 7/27/2010 1:46 PM, Frank J. Gómez wrote:
>
>> I have a new instance set up, and BackupPC is not initiating backups
>> because pings keep failing.  The behavior is really quite strange;
>> please read on:
>>
>> "nmblookup vostro1400" gives me 10.10.10.102.  This is correct.
>>
>> "nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.
>>
>> My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';
>>
>> The command "ping -c 1 vostro1400" gives:
>>
>>  PING vostro1400 (8.15.7.117) 56(84) bytes of data.
>>
>>
>>  --- vostro1400 ping statistics ---
>>
>>  1 packets transmitted, 0 received, 100% packet loss, time 0ms
>>
>>
>> What's up with that crazy IP address?  Why isn't ping resolving
>> vostro1400 to 10.10.10.102?  (Shouldn't we be pinging the IP address
>> instead of the hostname, anyway?)
>>
>> Any insight would be much appreciated.
>>  
> That IP address is what a DNS lookup returns, so it depends on your dns
> server and domain search list (as configured on the backuppc server).  I
> thought it would use nmblookup if you checked the dhcp box in the
> backuppc hosts config.  If it is a static IP, you can use the
> ClientAlias setting to supply the IP if DNS doesn't work.
>
>
So you should check your:
/etc/resolv.conf
/etc/hosts

Possible use a fully qualified domainname:
volstrol400.office

An other tip, maybe add a . at the end, so that search from 
/etc/resolv.conf is not used

Also have a look at the output of:

$ hostname

That should give you an idea of what it might be looking for and what it 
might find. :-)


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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/


Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 Thread Les Mikesell
On 7/27/2010 1:46 PM, Frank J. Gómez wrote:
> I have a new instance set up, and BackupPC is not initiating backups
> because pings keep failing.  The behavior is really quite strange;
> please read on:
>
> "nmblookup vostro1400" gives me 10.10.10.102.  This is correct.
>
> "nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.
>
> My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';
>
> The command "ping -c 1 vostro1400" gives:
>
> PING vostro1400 (8.15.7.117) 56(84) bytes of data.
>
>
> --- vostro1400 ping statistics ---
>
> 1 packets transmitted, 0 received, 100% packet loss, time 0ms
>
>
> What's up with that crazy IP address?  Why isn't ping resolving
> vostro1400 to 10.10.10.102?  (Shouldn't we be pinging the IP address
> instead of the hostname, anyway?)
>
> Any insight would be much appreciated.

That IP address is what a DNS lookup returns, so it depends on your dns 
server and domain search list (as configured on the backuppc server).  I 
thought it would use nmblookup if you checked the dhcp box in the 
backuppc hosts config.  If it is a static IP, you can use the 
ClientAlias setting to supply the IP if DNS doesn't work.

-- 
   Les Mikesell
lesmikes...@gmail.com



--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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] nmblookup = good; ping = enemy

2010-07-27 Thread Frank J . Gómez
I have a new instance set up, and BackupPC is not initiating backups because
pings keep failing.  The behavior is really quite strange; please read on:

"nmblookup vostro1400" gives me 10.10.10.102.  This is correct.

"nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.

My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';

The command "ping -c 1 vostro1400" gives:

> PING vostro1400 (8.15.7.117) 56(84) bytes of data.


> --- vostro1400 ping statistics ---

1 packets transmitted, 0 received, 100% packet loss, time 0ms


What's up with that crazy IP address?  Why isn't ping resolving vostro1400
to 10.10.10.102?  (Shouldn't we be pinging the IP address instead of the
hostname, anyway?)

Any insight would be much appreciated.

Thanks,
-Frank
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
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/


Re: [BackupPC-users] Trying to work around Windows filename too long problem

2010-07-27 Thread Matthias Meyer
James Ward wrote:

> full backup started for directory cDrive; updating partial #305
> Connected to tartarus:873, remote version 29
> Negotiated protocol version 28
> Connected to module cDrive
> Sending args: --server --sender --numeric-ids --perms --owner --group -D
> --links --hard-links --times --block-size=2048 --recursive --ignore-times
> . . Sent exclude: /Documents and Settings/*/Cookies Sent exclude:
> /Documents and Settings/*/Local Settings/Temporary Internet Files Sent
> exclude: /Documents and Settings/*/Local Settings/Temp Sent exclude:
> /Documents and Settings/*/NTUSER.DAT* Sent exclude: /Documents and
> Settings/*/ntuser.dat* Sent exclude: /Documents and Settings/*/Local
> Settings/Application Data/Microsoft/Windows/UsrClass.dat* Sent exclude:
> /Documents and Settings/*/Local Settings/Application
> Data/Mozilla/Firefox/Profiles/*/Cache Sent exclude: /Documents and
> Settings/*/Local Settings/Application
> Data/Mozilla/Firefox/Profiles/*/OfflineCache Sent exclude: /Documents and
> Settings/*/Recent Sent exclude: *.lock Sent exclude: Thumbs.db Sent
> exclude: IconCache.db Sent exclude: Cache*
> Sent exclude: cache*
> Sent exclude: /WINDOWS
> Sent exclude: /RECYCLER
> Sent exclude: /MSOCache
> Sent exclude: /System Volume Information
> Sent exclude: /AUTOEXEC.BAT
> Sent exclude: /BOOTSECT.BAK
> Sent exclude: /CONFIG.SYS
> Sent exclude: /hiberfil.sys
> Sent exclude: /pagefile.sys
> Sent exclude: .Trash
> Sent exclude: /Trash
> Sent exclude: /automount
> Sent exclude: /Network
> Sent exclude: /private/var/automount
> Sent exclude: /private/var/run
> Sent exclude: /private/var/vm
> Sent exclude: /private/var/tmp
> Sent exclude: /private/tmp
> Sent exclude: Caches
> Sent exclude: CachedMessages
> Sent exclude: /dev/fd
> Remote[1]: rsync: readlink "ygdrive/c/WINDOWS/system32/c:/Program
> Files/Symantec/Symantec Endpoint Protection
>
Manager/Inetpub/ClientPackages/75a504099329ffbe483107be4c78de0c/full/Symantec
> Endpoint
>
Protection.mpkg/Contents/plugins/ClientType.bundle/Contents/Resources/English.lproj/ClientType.nib/classes.nib"
> (in cDrive) failed: File name too long (91)

<< additional similar messages snipped by Matthias >>

> Xfer PIDs are now 14475 
> [ skipped 482 lines ]
> Can't write 34046 bytes to socket
> Read EOF:
> Tried again: got 0 bytes
> Child is aborting
> Parent read EOF from child: fatal error!
> Done: 380 files, 319900497 bytes
> Got fatal error during xfer (Child exited prematurely)
> Backup aborted (Child exited prematurely)
> Not saving this as a partial backup since it has fewer files than the
> prior one (got 380 and 380 files versus 12806)
> 


Hi James,

Please write your answer below quoted text. So the thread is easier to read.
Also remove lines without interest to make a message short and clear.
:-)

Both cases, with and without the exclude results in a "Read EOF:"
One with the error "Connection reset by peer" and the other with "Child is
aborting".

I would believe "Connection reset by peer" is a network interruption
and "Child is aborting"  means the client program die.
But I am not sure. A client logfile would be helpfully.

br
Matthias
-- 
Don't Panic


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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/


Re: [BackupPC-users] Move single host backup to different path

2010-07-27 Thread Les Mikesell
On 7/27/2010 8:20 AM, hankB wrote:
>
> Thanks for answer...
> The server and the nas are XFS.
> i add in /etc/fstab:
> //serverip/ClientBackup /backup smbfs auto,username=user,password=***  0 0
> mount backup
> I moutn the backup folder, but when i move the backups with:
> cp -dpR /var/lib/backuppc/. /backup
> cp don't copy the owner.. Permission denied.
> I don't have any idea..

Smbfs only knows the user name you used in the mount, and won't handle 
hardlinks.  Can you mount with nfs instead?

-- 
   Les Mikesell
lesmikes...@gmail.com

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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] Move single host backup to different path

2010-07-27 Thread hankB

Thanks for answer...
The server and the nas are XFS.
i add in /etc/fstab:
//serverip/ClientBackup /backup smbfs auto,username=user,password=***  0 0
mount backup
I moutn the backup folder, but when i move the backups with:
cp -dpR /var/lib/backuppc/. /backup
cp don't copy the owner.. Permission denied.
I don't have any idea..

+--
|This was sent by m8r-htw...@mailinator.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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/