[BackupPC-users] Testing the mail function from BackupPC

2010-01-28 Thread Sorin Srbu
Hi all,

I wanted to test the mail function with BackupPC as described on 
http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_email_delivery,
 
but got the below error message. I installed BackupPC according to the 
CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC.

Could anyone offer any insights on this? I though the backuppc-account was a 
nologin (or some such) account, thus a su isn't possible.

r...@mach012 ~/ [0]# su backuppc
r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se
/usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150 
(backuppc)
Please su backuppc first
BackupPC::Lib-new failed
r...@mach012 ~/ [0]#

Thanks for any help or explanations.
-- 
BW,
Sorin
---
# Sorin Srbu[Sysadmin, Systems Engineer]
# Dept of Medicinal Chemistry,  Phone: +46 (0)18-4714482 3 signals GSM
# Div of Org Pharm Chem,Mobile: +46 (0)701-718023
# Box 574, Uppsala University,  Fax: +46 (0)18-4714482
# SE-751 23 Uppsala, Sweden Visit: BMC, Husargatan 3, D5:512b
#   Web: http://www.orgfarm.uu.se
---
# ()  ASCII ribbon campaign - Against html E-mail
# /\
#
# MotD follows:
# Evolution is a harsh mistress.



smime.p7s
Description: S/MIME cryptographic signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Testing the mail function from BackupPC

2010-01-28 Thread Pascal Bourdais
Le Thu, 28 Jan 2010 11:18:24 +0100,
Sorin Srbu sorin.s...@orgfarm.uu.se a écrit :

Hi,

 
 I wanted to test the mail function with BackupPC as described on 
 http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_email_delivery,
  
 but got the below error message. I installed BackupPC according to the 
 CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC.
 
 Could anyone offer any insights on this? I though the backuppc-account was a 
 nologin (or some such) account, thus a su isn't possible.
 
 r...@mach012 ~/ [0]# su backuppc

su - backuppc

 r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se
 /usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150 
 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 r...@mach012 ~/ [0]#
 
 Thanks for any help or explanations.


-- 
P.Bourdais
Gie Infagri
Rue Albert Einstein
Parc Technopole de changé
53061 Laval Cedex 9
Tél: 02.43.49.84.40
« Celui qui est prêt à sacrifier un peu de liberté pour obtenir un peu
de sécurité ne mérite vraiment ni l'une, ni l'autre. » ( Benjamin
Franklin )

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Tony Molloy
On Thursday 28 January 2010 10:18:24 Sorin Srbu wrote:
 Hi all,
 
 I wanted to test the mail function with BackupPC as described on
 http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_em
 ail_delivery, but got the below error message. I installed BackupPC
  according to the CentOS-BackupPC wiki at
  http://wiki.centos.org/HowTos/BackupPC.
 
 Could anyone offer any insights on this? I though the backuppc-account was
  a nologin (or some such) account, thus a su isn't possible.
 
 r...@mach012 ~/ [0]# su backuppc

Try su - backuppc

to get backuppc's environment.

Tony
 r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u
  sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
  userid is 0, instead of 150 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 r...@mach012 ~/ [0]#
 
 Thanks for any help or explanations.
 

-- 

Chief Technical Officer.   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Tony Molloy
On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote:
 -Original Message-
 From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
 Sent: Thursday, January 28, 2010 12:04 PM
 To: backuppc-users@lists.sourceforge.net
 Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
 
 su - backuppc
 
 Already tried that, same thing happens:
 
 r...@mach012 ~/ [0]# su - backuppc
 r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u

You're still root!!

  sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
  userid is 0, instead of 150 (backuppc)
^^

definately still root

 Please su backuppc first
 BackupPC::Lib-new failed
 r...@mach012 ~/ [0]#
 

On my machine

[r...@shannon ~]# 
[r...@shannon ~]# su - backuppc
[backu...@shannon ~]$ 

see changed user to backuppc

[backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u 
moll...@mail.x.y.z
Sending test email using /usr/sbin/sendmail -t -f backuppc

[backu...@shannon ~]$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

[backu...@shannon ~]$ grep backuppc /etc/passwd
backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash

I suspect your backuppc user is not set up correctly. In my case it's got a 
uid of 490 and is a login account

Tony







-- 

Chief Technical Officer.   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Sorin Srbu
-Original Message-
From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se]
Sent: Thursday, January 28, 2010 12:20 PM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC

-Original Message-
From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
Sent: Thursday, January 28, 2010 12:04 PM
To: backuppc-users@lists.sourceforge.net
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC

su - backuppc

Already tried that, same thing happens:

r...@mach012 ~/ [0]# su - backuppc
r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se
/usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150
(backuppc)
Please su backuppc first
BackupPC::Lib-new failed
r...@mach012 ~/ [0]#


Did some thinking and got it working, sort of...

r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
backu...@mach012 ~/ [0]$ whoami
backuppc
backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u 
sorin.s...@orgfarm.uu.se
Sending test email using /bin/mail -t -f sorin.s...@orgfarm.uu.se
/bin/mail: invalid option -- t
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[-- sendmail-options ...]
   mail [-iInNv] -f [name]
   mail [-iInNv] [-u user]
backu...@mach012 ~/ [0]$

Now what? I don't see any t mentioned in man mail... Or am I getting 
slightly blind here? 8-S

-- 
/Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Testing the mail function from BackupPC

2010-01-28 Thread Sorin Srbu
-Original Message-
From: Tony Molloy [mailto:tony.mol...@ul.ie]
Sent: Thursday, January 28, 2010 1:56 PM
To: sorin.s...@orgfarm.uu.se; General list for user discussion, questions and
support
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC

On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote:
 -Original Message-
 From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
 Sent: Thursday, January 28, 2010 12:04 PM
 To: backuppc-users@lists.sourceforge.net
 Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
 
 su - backuppc

 Already tried that, same thing happens:

 r...@mach012 ~/ [0]# su - backuppc
 r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u

You're still root!!

  sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
  userid is 0, instead of 150 (backuppc)
^^

definately still root

 Please su backuppc first
 BackupPC::Lib-new failed
 r...@mach012 ~/ [0]#


On my machine

[r...@shannon ~]#
[r...@shannon ~]# su - backuppc
[backu...@shannon ~]$

see changed user to backuppc

[backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u
moll...@mail.x.y.z
Sending test email using /usr/sbin/sendmail -t -f backuppc

[backu...@shannon ~]$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

[backu...@shannon ~]$ grep backuppc /etc/passwd
backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash

I suspect your backuppc user is not set up correctly. In my case it's got a
uid of 490 and is a login account

The BackupPC installer sets the backuppc account up with nologin (no GUI 
login). In /etc/passwd the shell is /bin/false, so no GUI login allowed, but 
it should allow one to su in as backuppc. I solved that by adding the -s 
/bin/bash, as per the previous post. Now I can su properly to backuppc.

The problem *now* is that /bin/mail doesn't understand the -t switch. As I 
mentioned, I can't find anything about this t parameter in man mail, but in 
the /usr/bin/BackupPC_SendEmail script  the t parameter is mentioned as 
something that  -t  display the emails that would be sent, without sending 
them.

To me this is rather cryptic, and I don't quite understand the why's, what's 
and where's of this alluring -t and how I fix this.

Grateful for any help! Thanks.

-- 
/Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Testing the mail function from BackupPC

2010-01-28 Thread Pascal Bourdais
Le Thu, 28 Jan 2010 13:37:27 +0100,
Sorin Srbu sorin.s...@orgfarm.uu.se a écrit :

 -Original Message-
 From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se]
 Sent: Thursday, January 28, 2010 12:20 PM
 To: 'General list for user discussion, questions and support'
 Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
 
 -Original Message-
 From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
 Sent: Thursday, January 28, 2010 12:04 PM
 To: backuppc-users@lists.sourceforge.net
 Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
 
 su - backuppc
 
 Already tried that, same thing happens:
 
 r...@mach012 ~/ [0]# su - backuppc
 r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se
 /usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150
 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 r...@mach012 ~/ [0]#
 
 
 Did some thinking and got it working, sort of...
 
 r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
 backu...@mach012 ~/ [0]$ whoami
 backuppc
 backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u 
 sorin.s...@orgfarm.uu.se
 Sending test email using /bin/mail -t -f sorin.s...@orgfarm.uu.se

You have to use sendmail, and not mail. In my config : 
$Conf{SendmailPath} = '/usr/sbin/sendmail'

And sendmail :
/usr/sbin/sendmail - /usr/local/exim/bin/exim

 /bin/mail: invalid option -- t
 Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
 [-- sendmail-options ...]
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
 backu...@mach012 ~/ [0]$
 
 Now what? I don't see any t mentioned in man mail... Or am I getting 
 slightly blind here? 8-S
 


-- 
P.Bourdais
Gie Infagri
Rue Albert Einstein
Parc Technopole de changé
53061 Laval Cedex 9
Tél: 02.43.49.84.40
« Celui qui est prêt à sacrifier un peu de liberté pour obtenir un peu
de sécurité ne mérite vraiment ni l'une, ni l'autre. » ( Benjamin
Franklin )

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Tony Molloy
On Thursday 28 January 2010 13:16:41 Sorin Srbu wrote:
 -Original Message-
 From: Tony Molloy [mailto:tony.mol...@ul.ie]
 Sent: Thursday, January 28, 2010 1:56 PM
 To: sorin.s...@orgfarm.uu.se; General list for user discussion, questions
  and support
 Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
 
 On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote:
  -Original Message-
  From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
  Sent: Thursday, January 28, 2010 12:04 PM
  To: backuppc-users@lists.sourceforge.net
  Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
  
  su - backuppc
 
  Already tried that, same thing happens:
 
  r...@mach012 ~/ [0]# su - backuppc
  r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u
 
 You're still root!!
 
   sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
   userid is 0, instead of 150 (backuppc)
 
 ^^
 
 definately still root
 
  Please su backuppc first
  BackupPC::Lib-new failed
  r...@mach012 ~/ [0]#
 
 On my machine
 
 [r...@shannon ~]#
 [r...@shannon ~]# su - backuppc
 [backu...@shannon ~]$
 
 see changed user to backuppc
 
 [backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u
 moll...@mail.x.y.z
 Sending test email using /usr/sbin/sendmail -t -f backuppc
 
 [backu...@shannon ~]$ grep root /etc/passwd
 root:x:0:0:root:/root:/bin/bash
 
 [backu...@shannon ~]$ grep backuppc /etc/passwd
 backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash
 
 I suspect your backuppc user is not set up correctly. In my case it's got
  a uid of 490 and is a login account
 
 The BackupPC installer sets the backuppc account up with nologin (no GUI
 login). In /etc/passwd the shell is /bin/false, so no GUI login allowed,
  but it should allow one to su in as backuppc. I solved that by adding the
  -s /bin/bash, as per the previous post. Now I can su properly to
  backuppc.
 
 The problem *now* is that /bin/mail doesn't understand the -t switch. As
  I mentioned, I can't find anything about this t parameter in man mail, but
  in the /usr/bin/BackupPC_SendEmail script  the t parameter is mentioned as
  something that  -t  display the emails that would be sent, without
  sending them.
 
 To me this is rather cryptic, and I don't quite understand the why's,
  what's and where's of this alluring -t and how I fix this.
 
 Grateful for any help! Thanks.
 

Ok I run backuppc on CentOS and man mail says

   ~tname ...
 Add the given names to the direct recipient list.


So I'd just remove the -t and see what happens.

Hope this helps,

Tony



-- 

Chief Technical Officer.   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Tony Molloy
On Thursday 28 January 2010 13:31:28 Pascal Bourdais wrote:
 Le Thu, 28 Jan 2010 13:37:27 +0100,
 
 Sorin Srbu sorin.s...@orgfarm.uu.se a écrit :
  -Original Message-
  From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se]
  Sent: Thursday, January 28, 2010 12:20 PM
  To: 'General list for user discussion, questions and support'
  Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
  
  -Original Message-
  From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
  Sent: Thursday, January 28, 2010 12:04 PM
  To: backuppc-users@lists.sourceforge.net
  Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
  
  su - backuppc
  
  Already tried that, same thing happens:
  
  r...@mach012 ~/ [0]# su - backuppc
  r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u
   sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
   userid is 0, instead of 150 (backuppc)
  Please su backuppc first
  BackupPC::Lib-new failed
  r...@mach012 ~/ [0]#
 
  Did some thinking and got it working, sort of...
 
  r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
  backu...@mach012 ~/ [0]$ whoami
  backuppc
  backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u
  sorin.s...@orgfarm.uu.se
  Sending test email using /bin/mail -t -f sorin.s...@orgfarm.uu.se
 
 You have to use sendmail, and not mail. In my config :
 $Conf{SendmailPath} = '/usr/sbin/sendmail'
 
 And sendmail :
 /usr/sbin/sendmail - /usr/local/exim/bin/exim
 

In my config file it's also sendmail. I wonder what distro the OP uses

Tony


  /bin/mail: invalid option -- t
  Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
  [-- sendmail-options ...]
 mail [-iInNv] -f [name]
 mail [-iInNv] [-u user]
  backu...@mach012 ~/ [0]$
 
  Now what? I don't see any t mentioned in man mail... Or am I getting
  slightly blind here? 8-S
 

-- 

Chief Technical Officer.   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Sorin Srbu
-Original Message-
From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se]
Sent: Thursday, January 28, 2010 4:10 PM
To: 'General list for user discussion, questions and support'
Subject: RE: [BackupPC-users] Testing the mail function from BackupPC

Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail?
-t
is a
flag to sendmail that says the To:/From: headers are already in the input.

I didn't change those paths, it's a plain vanilla install really. With that
said, /usr/bin/mail is the preset value.

Ok, I'll try sendmail instead then. Thanks!

@Tony Molloy:
I run BackupPC on CentOS 5.4 and used the howto available at
http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of
sendmail in that howto.


Changed the path and now I don't get any error message any longer. Can't
tell for sure if works or not though. Am I supposed to get the testmail in
the inbox for the mail address listed below?

r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
backu...@mach012 ~/ [0]$ whoami
backuppc
backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u
sorin.s...@orgfarm.uu.se
Sending test email using /usr/sbin/sendmail -t -f sorin.s...@orgfarm.uu.se
backu...@mach012 ~/ [0]$

This is getting tedious. I hope you guys don't mind my ranting back and
forth... 8-}

Thanks all for now, I'm pretty sure I'll be back soon again with something
else I need help with.
-- 
/Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Testing the mail function from BackupPC

2010-01-28 Thread Sorin Srbu
-Original Message-
From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se]
Sent: Thursday, January 28, 2010 4:18 PM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC

Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail?
-t is a flag to sendmail that says the To:/From: headers are already in
the input.

I didn't change those paths, it's a plain vanilla install really. With
that
said, /usr/bin/mail is the preset value.

Ok, I'll try sendmail instead then. Thanks!

@Tony Molloy:
I run BackupPC on CentOS 5.4 and used the howto available at
http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of
sendmail in that howto.


Changed the path and now I don't get any error message any longer. Can't
tell for sure if works or not though. Am I supposed to get the testmail in
the inbox for the mail address listed below?


Right now I feel rather like a dunce. I didn't configure sendmail... The
below link helped though. Once I setup the smtp address, the test mail
dropped in.

http://www.cyberciti.biz/faq/linux-configure-sendmail-as-outbound-submission
-mta/

To my defense I must say, I've never dealt with sendmail before... This is a
first. 8-}

Anyway, seems like all (most visible things anyway) are in working order
now.

Thanks all for your help and suggestions, you've been stellar so far!
-- 
/Sorin


smime.p7s
Description: S/MIME cryptographic signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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] Testing the mail function from BackupPC

2010-01-28 Thread Les Mikesell
On 1/28/2010 9:17 AM, Sorin Srbu wrote:

 Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail?
 -t
 is a
 flag to sendmail that says the To:/From: headers are already in the input.

 I didn't change those paths, it's a plain vanilla install really. With that
 said, /usr/bin/mail is the preset value.

I'd report that as a bug to the packager.

 Ok, I'll try sendmail instead then. Thanks!

 @Tony Molloy:
 I run BackupPC on CentOS 5.4 and used the howto available at
 http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of
 sendmail in that howto.


 Changed the path and now I don't get any error message any longer. Can't
 tell for sure if works or not though. Am I supposed to get the testmail in
 the inbox for the mail address listed below?

 r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
 backu...@mach012 ~/ [0]$ whoami
 backuppc
 backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u
 sorin.s...@orgfarm.uu.se
 Sending test email using /usr/sbin/sendmail -t -f sorin.s...@orgfarm.uu.se
 backu...@mach012 ~/ [0]$

 This is getting tedious. I hope you guys don't mind my ranting back and
 forth... 8-}

 Thanks all for now, I'm pretty sure I'll be back soon again with something
 else I need help with.

Sendmail should work for _sending_ mail (but not receiving remotely) out 
of the box on a Centos install if your DNS works and you have direct 
outbound access.  If you have to relay through another host to get out, 
set SMART_HOST in sendmail.mc and restart sendmail.  If you have to 
deliver local mail to another server, set MAIL_HUB in sendmail.mc.  If 
you don't have a DNS-resolvable hostname, you will have to also set 
MASQUERADE_AS in sendmail.mc to get most other machines to accept the 
mail.  You can look at /var/log/maillog to see where things are going.

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

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Testing the mail function from BackupPC

2010-01-28 Thread Les Mikesell
On 1/28/2010 5:01 AM, Tony Molloy wrote:

 I wanted to test the mail function with BackupPC as described on
 http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_em
 ail_delivery, but got the below error message. I installed BackupPC
   according to the CentOS-BackupPC wiki at
   http://wiki.centos.org/HowTos/BackupPC.

 Could anyone offer any insights on this? I though the backuppc-account was
   a nologin (or some such) account, thus a su isn't possible.

 r...@mach012 ~/ [0]# su backuppc

 Try su - backuppc

 to get backuppc's environment.

The problem here is that the backuppc user added by the rpm package 
doesn't have a shell in the /etc/passwd file (which you need for this 
sort of testing and testing the ssh keys).  Either fix this and be done 
with it or use 'su -s /bin/bash backuppc' every time.

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

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Central backup system software?

2010-01-28 Thread toughman

I have been looking for a software which will do central backup for our video 
files from different stores.

Each store has Raid1 hotswap driver for backup HD and the HD will be pluged 
into the central backup system once a week.  At central system, there are 
different subfolders for all stores.  

I am looking for a software will automatically backup the store HD to central 
backup system.  The backup software will only copy the data with the date later 
than the date of the files in the central backup system. 

Can anyone please let me know the sfotware?

Thanks,

Roger

+--
|This was sent by wei...@chineselink.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Central backup system software?

2010-01-28 Thread Tino Schwarze
Hi Roger,

On Wed, Jan 27, 2010 at 02:57:47PM -0500, toughman wrote:

 I have been looking for a software which will do central backup for our video 
 files from different stores.
 
 Each store has Raid1 hotswap driver for backup HD and the HD will be pluged 
 into the central backup system once a week.  At central system, there are 
 different subfolders for all stores.  
 
 I am looking for a software will automatically backup the store HD to central 
 backup system.  The backup software will only copy the data with the date 
 later than the date of the files in the central backup system. 
 
 Can anyone please let me know the sfotware?

Well, you asked within a particular software's discussion forum
already... If you just want to copy the harddisks, then I'd go for a
custom rsync-based scripting solution.

What operating system are you talking about, BTW? What is the expected
backup volume? How many stores, how large drives etc.? Are there
duplicate files or are they all unique?

It looks like BackupPC is not the kind of software you're looking for.

HTH,

Tino.

-- 
What we nourish flourishes. - Was wir nähren erblüht.

www.lichtkreis-chemnitz.de
www.tisc.de

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] server spec for BackupPC

2010-01-28 Thread Mike Dresser
Chris Robertson wrote:
 4 Port 3Ware SATA Raid card* - $310
 http://www.newegg.com/Product/Product.aspx?Item=N82E16816116052

   
Careful, the 9550SX/SU's don't work in a PCI slot.
 1.5 TB SATA Drives - $145 each ( $725 for 5, so you have a spare)
 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148531

   
Not sure I'd want 5900 rpm drives.. Depending on how much space you 
need, I'd look into spending the bucks and getting some raid edition drives.
 Chris

 * PCI-X is backwards compatible with PCI, so this card will work in a 
 PCI slot.
   
Except when 3ware doesn't provide the cutout and the slot is physically 
incompatible.

I have a 9550SX-16 right here, and there's no way it'll fit in a pci slot.

9500's will run in 64bit mode though, which provides a bit of a boost 
compared to just regular PCI

Mike


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] autossh issues

2010-01-28 Thread Trey Nolen
We've been using Backuppc for years to backup machines over the WAN.  It 
has worked nearly flawlessly for us in the past, but we are starting to 
see issues with new machines that we bring online.  I think the trouble 
may have to do with the recent updates to Cygwin.

When backing up remote Windows machines over a WAN, we setup a 
persistent tunnel using autossh and then backup to localhost on some 
port which is redirected to rsync on the remote server.   Here is a 
typical example:
/usr/lib/autossh/autossh -2 -N -M 38022 -L 9035:localhost:873 -C 
administra...@remotehost.domain.com 

In our config.pl, we will have some lines like these:
$Conf{XferMethod}='rsyncd';
$Conf{ClientNameAlias} = localhost;
$Conf{RsyncdClientPort} = 9035;



Now, our issue lately is that the tunnels always seem to be dropping.  
We get errors like this:
Warning: remote port forwarding failed for listen port 38022

That invariably restarts the ssh tunnel, which drops any active rsync.  
We've tried with other commands like this:
/usr/lib/autossh/autossh -o ServerAliveInterval 59 -o 
ServerAliveCountMax 20 -2 -N -M 0 -L 9035:localhost:873 -C 
administra...@remotehost.domain.com 


But these fail as well.   We are also seeing a build up of 10's to 100's 
of sshd.exe and rsync.exe processes on the remote machines which is 
bringing them to a crawl.

Does anyone have any ideas of ways we can change what we are doing with 
the new Cygwin that will help?   Is there a way to install the old 
Cygwin?  

One other thing: we have been replacing the rsync.exe that comes with 
the new Cygwin with an older one that uses protocol 28.  We did that 
because 1) that is the highest protocol the rsync perl module supports, 
and 2) the newer Cygwin rsync seems to leave .pid files laying around 
when the server is rebooted, and subsequently won't restart until you 
delete the .pid.

Thanks.

Trey Nolen







--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] new switch, slower backups

2010-01-28 Thread Chris Baker

I have decided to try a direct Ethernet connection between the server and
the backuppc machine. I will see what happens. I added a line to the hosts
file to make sure that backuppc uses that connection.

There were lots of good suggestions here.

Chris Baker -- cba...@intera.com
systems administrator
INTERA -- 512-425-2006
 

-Original Message-
From: Les Mikesell [mailto:lesmikes...@gmail.com] 
Sent: Saturday, January 23, 2010 3:10 PM
To: General list for user discussion,questions and support
Subject: Re: [BackupPC-users] new switch, slower backups

l...@consolejunky.net wrote:
 On 01/23/2010 07:29 PM, klemens wrote:
 Am Samstag, den 23.01.2010, 11:54 -0600 schrieb Les Mikesell:

 or something like that ?

 linuxpc: # mii-tool eth0
 eth0: negotiated 100baseTx-FD flow-control, link ok



 
 Add a -v for more information:
 
 eth0: negotiated 100baseTx-FD, link ok
product info: vendor 00:50:ef, model 14 rev 0
basic mode:   autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 
100baseTx-HD 
 10baseT-FD 10baseT-HD
advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD 
 flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 
100baseTx-HD 
 10baseT-FD 10baseT-HD

Mii-tool doesn't really understand gig NICs - use ethtool 
instead.  But the real evidence of problems is in errors in 
the ifconfig display or the counters on the switch ports.

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



--

Throughout its 18-year history, RSA Conference consistently 
attracts the world's best and brightest in the field, 
creating opportunities for Conference attendees to learn 
about information security's most important issues through 
interactions with peers, luminaries and emerging and 
established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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 Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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/