Note: Forwarded message attached

-- Original Message --

From: john folia <[EMAIL PROTECTED]>
To: bimal pandit <[EMAIL PROTECTED]>
Subject: Re: Re: Re: Re: Backuppc



--- Begin Message ---
Dear Bimal,
                 It is perfact doc. ya, you can add all these questions/answer with your doc so that other can save their time.
                 I have also installed samba and xsmbrowser. using xsmbrowser I can see/browse, mount window's share. xsmbrowser is very easy and good to use for window's share. We have to just install xsmbrowser. no need of compilation. run it from installation directory ./xsmbrowser and you are ready to browse windows network. But offcourse your smaba should be configured before using it.(This will help other people if you want to post it with your doc.)
can you give some example how to use that mount to take backup?
 
 
Thanks.
 
John
                

bimal pandit <[EMAIL PROTECTED]> wrote:
Dear John,

On Fri, 25 Nov 2005 john folia wrote :
>Hi bimal,
>                It was because of permission on BackupPC_admin. Now it worked. One more quick question. Can  I mount window's share on linux and use that share for backup?
>
>  Thanks.
>
>  John
>
>bimal pandit <[EMAIL PROTECTED]> wrote:
>    Dear John
>
>On Wed, 23 Nov 2005 john folia wrote :
> >Hi Bimal,
> >                I have checked httpd.conf it has everything you said, but when I try to open it in browser,> >  http://mymachine.domain.com/cgi-bin/backuppc/BackupPC_Admin
> >
> >  it gives me an error,
> >
> >  "The server encountered an internal error or misconfiguration and was unable to complete your request."
> >
> >  what may be wrong? I have checked httpd.conf so many time but couldn't figure-out the problem.
> >  http://mymachine.domain.com opens that's mean web server is OK.
> >  Any idea?
> >
> >  Thanks.
> >
> >  Regards,
> >  John
> >
> >
> >
> >bimal pandit <[EMAIL PROTECTED]> wrote:
> >    Dear John,
> >
> >On Tue, 22 Nov 2005 john folia wrote :
> > >Dear Bimal,
> > >                    Thanks for your guidance. I have changed backuppc script and it worked. But here I encounter other problem, before changing backupscript, GUI (Web Interface) was working. Now it says "access denied". Do I need to change anything?
> > >
> > >  Thanks.
> > >
> > >  John
> > >
> > >bimal pandit <[EMAIL PROTECTED]> wrote:
> > >    Dear John,
> > >
> > >First of all sorry for late response, I was out of station on some other projects, anyway I am replying you about both of your questions as per my understanding and knowledge.
> > >
> > >Q1) I want to take backup on DLT in linux/windows enviornment. Will you please tell how to?
> > >
> > >http://fedoranews.org/blog/?p=603
> > >
> > >Please specify a data directory for BackupPC. This is where the
> > >configuration files, LOG files and all the PC backups are stored.
& gt; > >This file system needs to be big enough to accommodate all the
> > >PCs you expect to backup (eg: at least 1-2GB per machine).
> > >--> Data directory (full path) []? /data/backuppc
> > >
> > >so you need to adjust such that /data/backuppc is on DLT.
> > >
> > >Q2) I am getting error while trying to start backuppc as, "user _BACKUPPCUSER_ does not exist".
> > >
> > >http://backuppc.sourceforge.net/faq/BackupPC.html
> > >
> > >BackupPC User :- It is best if BackupPC runs as a special user, eg backuppc, that has limited privileges. It is preferred that backuppc belongs to a system administrator group so that sys admin members can browse backuppc files, edit the configuration files and so on. Although configurable, the default settings leave group read permission on pool files, so make sure the BackupPC user's group is chosen restrictively.
> > >
> > >    On this installation, this is __BACKUPPCUSER__.
> > >
> > >while I also had the same error when i did, "service backuppc start" as _BACKUPPC_USER_ does not exists, this was an error in this script so the correct script is attached, and is succesfully running on 192.168.0.26
> > >
> > >          ---------Actual BackupPC  /etc/init.d/backuppc  script-----------
> > >
> > >#!/bin/sh
> > >#
> > ># DESCRIPTION
> > >#
> > >#  Startup init script for BackupPC on Redhat linux.
> > >#
> > ># Distributed with BackupPC version 2.1.0, released 20 Jun 2004.
> > >#
> > ># chkconfig: - 91 35
> > ># description: Starts and stops the BackupPC server
> > >
> > ># Source function library.
> > >if [ -f /etc/init.d/functions ] ; then
> > >  . /etc/init.d/functions
> > >elif [ -f /etc/rc.d/init.d/functions ] ; then
> > >  . /etc/rc.d/init.d/functions
> > >else
> > >  exit 0
> > >fi
> > >
> > >RETVAL=0
> > >
> > >start() {
> > >    #
> > >    # You can set the SMB share password here is you wish.  Otherwise
> > >    # you should put it in the config.pl script.
> > >    # If you put it here make sure this file has no read permissions
> > >    # for normal users!  See the documentation for more information.
> > >    #
> > >    # Replace the daemon line below with this:
> > >    #
> > >    #  daemon --user backuppc /usr/bin/env BPC_SMB_PASSWD=xxxxx \
> > >    #                    /opt/backuppc/bin/BackupPC -d
> > >    #
> > >    echo -n "Starting BackupPC: "
> > >    daemon --user backuppc /opt/backuppc/bin/BackupPC -d
> > >    RETVAL=$?
> > >    echo
> > >    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/backuppc || \
> > >      RETVAL=1
> > >    return $RETVAL
> > >}
> > >
> > >stop() {
> > >    echo -n "Shutting down BackupPC: "
> > >    killproc /opt/backuppc/bin/BackupPC
> > >    RETVAL=$?
> > >    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/backuppc
> > >    echo ""
> > >&nbs p;   return $RETVAL
> > >}
> > >
> > >restart() {
> > >    stop
> > >    start
> > >}
> > >
> > >reload() {
> > >    echo -n "Reloading config.pl file: "
> > >    killproc /opt/backuppc/bin/BackupPC -HUP
> > >    RETVAL=$?
> > >    echo
> > >    return $RETVAL
> > >}
> > >
> > >rhstatus() {
> > >    status /opt/backuppc/bin/BackupPC
> > >}
> > >
> > >case "$1" in
> > >  start)
> > >        start
> > >      ;;
> > >  stop)
> > >        stop
> > >      ;;
> > >  restart)
> > >        restart
> > >      ;;
> > >  reload)
> > >        reload
> > >      ;;
> > >  status)
> > >        rhstatus
> > >      ;;
> > >  *)
> > >      echo "Usage: $0 {start|stop|restart|reload|status}"
> > >      exit 1
> > >esac
> > >
> > >exit $?
> > >
> > >and needs to check the permission as...
> > >
> > >[EMAIL PROTECTED] ~]# ls -l /etc/init.d/backuppc
> > >-r-xr-xr-x  1 root root 1723 Jul 28 11:07 /etc/init.d/backuppc
> > >
> > >so I would suggest to use this script, instead of you have installed.
> > >
> > >I hope that this will help, else don't forget to revert back w ith the results, including OS - flavour/version, BackupPC version etc.
> > >
> > >regards,
> > >
> > >Bimal Pandit
> > >
> >
> >
> >please chkeck your web server user, I mean in your "httpd.conf" it should be :-
> >
> >User backuppc
> >Group backuppc
> >
> >I mean in actual it should be owend by the BackupPC user.
> >
> >hope this will help.
> >
> >regards,
> >
> >Bimal Pandit
> >
>
>please check the following,
>
>[EMAIL PROTECTED] bimal]# ls -la /var/www/cgi-bin/
>drwxr-xr-x  2 root root  4096 Jul 27 18:03 backuppc
>-rw-r--r--  1 root root    20 Jul 27 18:07 .backuppcpsswd
>
>
>[EMAIL PROTECTED] bimal]# ls -l /var/www/cgi-bin/backuppc/
>-r-xr-xr--  1 backuppc backuppc 3913 Jul 27 18:03 BackupPC_Admin
>
>
>also I hope that you must have done as same as I have mentioned in the article i.e.
>
>BackupPC has a powerful CGI perl interface that runs under Apache.
>A single executable needs to be installed in a cgi-bin directory.
>This executable needs to run as set-uid backuppc, or
>it can be run under mod_perl with Apache running as user backuppc.
>Leave this path empty if you don't want to install the CGI interface.
>--> CGI bin directory (full path) []? /var/www/cgi-bin/backuppc
>BackupPC's CGI script needs to display various GIF images that
>should be stored where Apache can serve them. They should be
>placed somewher under Apache's DocumentRoot. BackupPC also
>needs to know the URL to access these images. Example:
>Apache image directory: /usr/local/apache/htdocs/BackupPC
>URL for image directory: /BackupPC
>The URL for the image directory should start wi th a slash.
>--> Apache image directory (full path) []? /var/www/html/backuppc
>
>this is clearly the case with the script/permission/directory!!!!, just do it again and go through "/var/log/httpd/error*" log, will definitely get the solution see I tried to put(BackupPC script) by just putting the script as root user in /var/www/cgi-bin directory and had the same message then analysed my log files and yes....
>
>[Thu Nov 24 09:38:46 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
>[Thu Nov 24 09:39:01 2005] [error] [client 127.0.0.1] (13)Permission denied: exec of '/var/www/cgi-bin/BackupPC_Admin' failed[Thu Nov 24 09:39:01 2005] [error] [client 127.0.0.1] Premature end of script headers: BackupPC_Admin
>[Thu Nov 24 09:39:02 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
>
>so next I did,
>
>[EMAIL PROTECTED] bimal]# chown backuppc.backuppc /var/www/cgi-bin/BackupPC_Admin
>[EMAIL PROTECTED] bimal]# service httpd restart
>
>and Oh.... SOLVED!!!
>
>anyway pls dont hesitate to mail again in case you did not succeed, will try to help with new results/facts/info.
>
>regards,
>
>Bimal Pandit
>

Thanks GOD, it solved, I had a doubt on my article!!!!
you know I thought that my article was meant for a newbee, anyway I think I should post your questions and answers so that others will be saved.

yes, you can mount windows share, for that you need a samba client on your linux box, permission and sahred directory/drive of windows system and then mount it using mount/smbmount etc. it will become as if it is a local directory(on linux box) and then take its backup as if it is linux part.

hope this will help.

regards,

Bimal Pandit.




Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
--- End Message ---

Reply via email to