Re: [BackupPC-users] backing up a particular user

2007-09-25 Thread Ronny Aasen
On Mon, 2007-09-24 at 20:46 -0700, Simpson, Kenneth wrote:
 Hi - I'm trying to backup a single user directory on Linux (SLES 9) 
 using version 2.1.3 of BackupUP and rsync - but it's backing up all 
 all the directories on the source disk starting at the beginning of 
 the alphabet.
 
 I just need to backup the directory /domus/support - and not any of 
 the other directories. 
 
 I have to do similar cherry picking on a couple of other machines.
 
 Here is my hosts file entry:
 
   hostdhcpusermoreUsers # --- do not edit this line
   linws7   0  support   # --- example static IP host 
 entry
 
 and here's the rsync share from config.pl:
 
   $Conf{RsyncShareName} = '/domus';
 
 Any help would be appreciated.
 
 -- Ken
 

try
 $Conf{RsyncShareName} = '/domus/support';


Ronny


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Problems with CGI setup for backuppc on Debian Etch.

2007-09-25 Thread Ronny Aasen
Problem #1: I'm have trouble setting up CGI for backuppc on Debian
etch. Paths / scripts are missing or aren't where the documentation
says
they should be. Specifically I can't locate BackupPC_Admin.
Installation seemed to go fine:

tsDeb:/etc/apache-ssl# apt-get install backuppc

It's a good idea to read  /usr/share/doc/backuppc/README.Debian


to enable the backuppc cgi in debian i do
apache1:
 ln -s /etc/backuppc/apache.conf /etc/apache/conf.d/backuppc.conf
apache2:
 ln -s /etc/backuppc/apache.conf /etc/apache2/conf.d/backuppc.conf

and restart apache

Ronny


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Error log for pre or post command errors?

2007-09-25 Thread Craig Barratt
Dustin writes:

 We noticed that BackupPC never reports any issues with a -pre or -post
 command. This is odd. If a -pre command fails, then it is very likely
 that the backup will be moot (e.g., if you don't dump a MySQL database).
 
 Are there any plans to enable reporting for errors in -pre or -post
 commands?

Any output is written to the XferLOG file.

The exit status is ignored in 2.x, while in 3.x it can be used
to abort the backup by setting $Conf{UserCmdCheckStatus}.

Craig

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] backing up a particular user

2007-09-25 Thread Simpson, Kenneth

On Mon, 2007-09-24 at 20:46 -0700, Simpson, Kenneth wrote:
  Hi - I'm trying to backup a single user directory on Linux (SLES 9) 
  using version 2.1.3 of BackupUP and rsync - but it's backing up all 
  all the directories on the source disk starting at the beginning of 
  the alphabet.
  
  I just need to backup the directory /domus/support - and not any of 
  the other directories. 
  
  I have to do similar cherry picking on a couple of other machines.
  
  Here is my hosts file entry:
  
hostdhcpusermoreUsers # --- do not edit this line
linws7   0  support   # --- example static IP host 
  entry
  
  and here's the rsync share from config.pl:
  
$Conf{RsyncShareName} = '/domus';
  
  Any help would be appreciated.
  
  -- Ken
  

try
 $Conf{RsyncShareName} = '/domus/support';

It's not clear how this helps solve my problem. 

As I indicated above, I need to backup other directories on 
other machines.

If I make the change you suggested, i.e., edit config.pl to read

   $Conf{RsyncShareName}='/domus/support'

then I'll be unable to backup my directory /domus/ken which is on 
another machine.

In fact, I won't be able to backup any other directory regardless of 
which machine it was on.




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] webinterface on diff host

2007-09-25 Thread Craig Barratt
Maikel writes:

 i'm trying to run the web interface on a different host then the
 backuppc server process.
 
 what i did configure:
 
 on the server itself:
 i have enabled a tcp port ()
 i added a secret message
 
 on the client (web server):
 i enabled the tcp port to ()
 i added the same secret message to the server
 i did configure the server host to the correct ip of the server.
 
 now when i restarted backuppc on both server en client i pointed my
 browser to the web server with backuppc and nothing happens, it looks
 like backuppc is not connecting to the server.

The web host needs:

  - the BackupPC pool mounted at the same path as the BackupPC server
(the web interface needs access to the pc backup directories)

  - /etc/BackupPC needs mounted if you are using FHS.

  - the BackupPC libraries and executables installed at the same path
as the BackupPC server.

Craig

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] backing up a particular user

2007-09-25 Thread Rob Owens


Simpson, Kenneth wrote:
 On Mon, 2007-09-24 at 20:46 -0700, Simpson, Kenneth wrote:
 Hi - I'm trying to backup a single user directory on Linux (SLES 9) 
 using version 2.1.3 of BackupUP and rsync - but it's backing up all 
 all the directories on the source disk starting at the beginning of 
 the alphabet.

 I just need to backup the directory /domus/support - and not any of 
 the other directories. 

 I have to do similar cherry picking on a couple of other machines.

 Here is my hosts file entry:

   hostdhcpusermoreUsers # --- do not edit this line
   linws7   0  support   # --- example static IP host 
 entry

 and here's the rsync share from config.pl:

   $Conf{RsyncShareName} = '/domus';

 Any help would be appreciated.

 -- Ken

 
 try
 $Conf{RsyncShareName} = '/domus/support';
 
 It's not clear how this helps solve my problem. 
 
 As I indicated above, I need to backup other directories on 
 other machines.
 
 If I make the change you suggested, i.e., edit config.pl to read
 
$Conf{RsyncShareName}='/domus/support'
 
 then I'll be unable to backup my directory /domus/ken which is on 
 another machine.
 
 In fact, I won't be able to backup any other directory regardless of 
 which machine it was on.
 

Ken,

You can create host-specific config files, so you can make
$Conf{RsyncShareName} different for every machine you back up.  A
host-specific config file is just like the standard config file, but it
only needs to include whatever lines are different from the standard
config file.  So your machine1.pl file could be only one line long,
specifying the proper share to back up.

-Rob

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Backup Schedule

2007-09-25 Thread rajnish kumar
Dear Craig
I found every thing i want from backuppc but still
some things are missing might be possible i am not able to see the
things
My query is --- Backup Schedule
1.   full backup start time is -- Monday 1:30 PM
2.   Incremental is every hours except friday
3.   Friday incremental is only two times like one is 11:30 AM and
second is 4:30 PM
with regds
rajnish

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Localhost tar back odditie...

2007-09-25 Thread Rob Morin
Hello all

Below is my localhost.pl file, i install this via apt-get on Debian Etc. 
But for some reason it still backs up the files i have in the exclude 
section... did i miss something?

Thanks...

Have a great day/evening!


#
# Local server backup of /etc as user backuppc
#
$Conf{ClientNameAlias} = 'localhost';
$Conf{TarClientCmd} = '/usr/bin/sudo /usr/local/bin/tarCreate -v -f - -C 
$shareName+ --totals';
$Conf{XferMethod} = 'tar';
$Conf{TarShareName} = 
['/etc','/var/www/ispcp','/var/mail','/usr/local/bin','/var/lib'];
$Conf{BackupFilesExclude} = ['/var/log', '/var/lib/backuppc', 
'/var/lib/backuppc.off','/var/oldjoe'];

# remove extra shell escapes ($fileList+ etc.) that are
# needed for remote backups but may break local ones
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';



-- 

Rob Morin
Director of Technologies
Dido Internet Inc.
Montreal,Canada
http://www.dido.ca
514-990-

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] User Controled Exclusions

2007-09-25 Thread Paul Dugas
Saw a posing from a while back discussing the concept of letting users
touch files to designate items to exclude from the backup.  The
discussion doesn't seem to have gotten far as the focus seemed to be on
modifying BackupPC to support it.  I've got another approach and wanted
to get some feedback before I spent too much time on it.

My thought is that I should be able to run a script via
$Conf{DumpPreUserCmd} to create a list of files/dirs to exclude.  The
script would run 'find --type f -name .nobackup' for each entry in
$shares.  If the file were empty, the directory would be excluded.
Non-empty .nobackup files would be expected to contain a list of entries
in/under the current directory that should be excluded.  Once the
exclusion file exists, $TarClientCmd could be tweaked to add the
--exclude-from FILE argument.

Make sense?  In my case, the time required to generate that exclusion
file should be short so that's not an issue here.  What am I missing?

pd
-- 
Paul Dugas, Computer EngineerDugas Enterprises, LLC
[EMAIL PROTECTED]phone: 404-932-1355 522 Black Canyon Park
http://dugas.ccfax: 866-751-6494 Canton, GA 30114 USA
--
This e-mail and any attachments are confidential.  If you receive
this message in error or are not the intended recipient, you should
not retain, distribute, disclose or use any of this information and
you should destroy the e-mail and any attachments or copies.


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] failed partial backups deleting files from previous partials

2007-09-25 Thread Carl Wilhelm Soderstrom
On 09/24 12:38 , Craig Barratt wrote:
  My understanding of how BackupPC works in this regard is imperfect. Why
  can't the old partial backup be updated, in the way that conventional rsync
  updates an old copy?
 
 BackupPC doesn't do anything in place on the server.  It always
 creates a new directory tree for each backup.  In contrast, with
 typical usage rsync does things in place.

ah, I see.
I think I see some of the arguments for doing things this way, but what was
*your* reasoning when you first designed this architecture? It's rather
unusual compared to the other rsync-backup programs I've seen (or built).

 In 3.1.0 I've added a check that a new partial won't replace an
 old partial unless it contains more files, so that should avoid
 the annoying problem of a new partial potentially being smaller
 than the last.

Much appreciated. Thanks. :)
Ideally, the new partial would be merged with the old partial tho. I guess
we'll have to wait for a newer version for that feature. (alternatively, how
much would it cost for someone to pay you to add that feature?)

 The issue is that the proposed new style of storage would be most
 efficient with in-place updating of the last (complete) backup.

ah, so you're planning on abandoning the creation of a 'new' tree with every
backup, and going to in-place updating, which means we get normal rsync
behavior. (Thus obviating my comment above).

I appreciate your exposition. :)

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] failed partial backups deleting files from previous partials

2007-09-25 Thread Les Mikesell
Carl Wilhelm Soderstrom wrote:
 My understanding of how BackupPC works in this regard is imperfect. Why
 can't the old partial backup be updated, in the way that conventional rsync
 updates an old copy?
 BackupPC doesn't do anything in place on the server.  It always
 creates a new directory tree for each backup.  In contrast, with
 typical usage rsync does things in place.
 
 ah, I see.
 I think I see some of the arguments for doing things this way, but what was
 *your* reasoning when you first designed this architecture? It's rather
 unusual compared to the other rsync-backup programs I've seen (or built).

If you are going to keep snapshot-looking backups around at various 
points in time you can't modify in place.  That is, if I restore from a 
certain day's backup run, I expect it to still have only the files that 
existed at that time.

 In 3.1.0 I've added a check that a new partial won't replace an
 old partial unless it contains more files, so that should avoid
 the annoying problem of a new partial potentially being smaller
 than the last.
 
 Much appreciated. Thanks. :)
 Ideally, the new partial would be merged with the old partial tho. I guess
 we'll have to wait for a newer version for that feature. (alternatively, how
 much would it cost for someone to pay you to add that feature?)
 
 The issue is that the proposed new style of storage would be most
 efficient with in-place updating of the last (complete) backup.
 
 ah, so you're planning on abandoning the creation of a 'new' tree with every
 backup, and going to in-place updating, which means we get normal rsync
 behavior. (Thus obviating my comment above).

But will you still be able to restore the file state as of each separate 
run?  Sometimes the reason you are restoring is that the current version 
is a mess.  The issue could probably be avoided with a complete tree 
link copy before starting followed by in in-place update, but that is 
probably even less efficient.

-- 
   Les Mikesell
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Fwd: Unable to Browse Backups

2007-09-25 Thread Kimball Larsen
Update:  MacOS X does funky permissions on this drive - when I first  
sent the original mail, I was logged in as root, and the ownerships  
were appearing as unknown:unknown for everything on this drive - but  
when I logged in as the backuppc user, the ownership appears as the  
backuppc user for both user and group.


The other odd thing is that the first 5 backups are browseable, but  
backups 6-10 are not.


The first 5 were small test backups of a single directory on my  
machine, then I added several more directories, and now they are not  
browseable.


Help!

-- Kimball 



Begin forwarded message:


From: Kimball Larsen [EMAIL PROTECTED]
Date: September 24, 2007 4:28:28 PM MDT
To: backuppc-users@lists.sourceforge.net
Subject: Unable to Browse Backups

So, I've recently gotten backuppc installed on OSX as the server,  
backing up the local machine (my laptop) to an external firewire  
drive, and it works great. I've even developed a simple script that  
prevents the backups from occurring when the drive is disconnected.


However, after today's full backup, I went to browse back through  
the backup to see how it all looked, and I get this error in the cgi:


Error: Can't browse bad directory name /

Here are the settings from my configuration:

$Conf{XferMethod} = 'rsync';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath  
$argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host  
$rsyncPath $argList+';

$Conf{RsyncShareName} = [
  '/Users/kimball',
  '/usr/local/mysql/data',
  '/System/Library/Fonts'
];
$Conf{BackupFilesExclude} = {
  '/Users/kimball' = [
'Desktop/TV',
'Desktop/Downloads',
'Documents/Parallels/XP/winxp.hdd',
'Library/Caches'
  ]
};

There are no errors in the logs, and the directories created look  
like this:


MainEngineering:/Volumes/Honker/Backups/pc/192.168.0.21/10 root# ls  
-la

total 32
drwxr-x---8 unknown  unknown   272 Sep 24 15:55 .
drwxr-x---   27 unknown  unknown   918 Sep 24 16:13 ..
-rw-r-1 unknown  unknown  6148 Sep 24 15:31 .DS_Store
-rw-r-2 unknown  unknown   109 Sep 24 15:55 attrib
-rw-r-1 unknown  unknown   590 Sep 24 16:13 backupInfo
drwxr-x---   40 unknown  unknown  1360 Sep 24 15:55 f%2fSystem% 
2fLibrary%2fFonts
drwxr-x---   38 unknown  unknown  1292 Sep 24 15:53 f%2fUsers% 
2fkimball
drwxr-x---   61 unknown  unknown  2074 Sep 24 15:55 f%2fusr%2flocal% 
2fmysql%2fdata



As you can see, the owner and group are set to unknown:unknown -  
the backup process is definitely running as the backuppc user, so  
I'm not sure why the ownership is being messed up like this.


Thoughts?

Thanks!

-- Kimball 






-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] restricting cgi users restore to their own files, or how to handle many users.

2007-09-25 Thread Ronny Aasen
Hello.

I have installed backuppc + apache2 ldap_auth on debian etch and it's
working great. 

Now i have one challenge that i have not been able to find a solution
for in the docs or mailinglist archives. If it's been answered allready
I would very much like a url.

I am taking backup of a directory /home, containing ~1000 users. 
And i want to allow each of the users access to restore his own files. 
But NOT to read/restore files that he normaly would not. 

Example: user1 have a file in /home/user1/private.txt that have 600
permissions. I dont want user2 to be able to read this thru the backuppc
cgi. 

i have tested this with a line in hosts that say
server  0   rootuser1,user2

and it seams to me that user2 can read all files of the backup, even
files he normaly would have no access to.

So how others solve this problem ? 
must you have 1000 lines in hosts, one line for each homedir ?  Or are
there a different way where i can have backuppc check the orginal
permissions and deny restore if the user in question dont have the right
access.

Kind regards
-- 
mvh
Ronny Aasen -- 41616155 -- [EMAIL PROTECTED] --
Datapart AS -- 57682100 --  www.datapart-as.no  --



signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Error log for pre or post command errors?

2007-09-25 Thread Dustin Puryear
Yes, one of our guys noted the 3.x support for errors the other day. As
far as XferLOG in 2.x, obviously, that's not enough if you have critical
jobs running in a -pre command (e.g., mysqldump).

We went ahead and created templates for scripts that run -pre and -post
commands that will ensure an admin is notified of any errors. We'd be
happy to submit them regardless.

--
Puryear Information Technology, LLC
Baton Rouge, LA * 225-706-8414
http://www.puryear-it.com

Author, Best Practices for Managing Linux and UNIX Servers
  http://www.puryear-it.com/pubs/linux-unix-best-practices

Identity Management, LDAP, and Linux Integration


Craig Barratt wrote:
 Dustin writes:
 
 We noticed that BackupPC never reports any issues with a -pre or -post
 command. This is odd. If a -pre command fails, then it is very likely
 that the backup will be moot (e.g., if you don't dump a MySQL database).

 Are there any plans to enable reporting for errors in -pre or -post
 commands?
 
 Any output is written to the XferLOG file.
 
 The exit status is ignored in 2.x, while in 3.x it can be used
 to abort the backup by setting $Conf{UserCmdCheckStatus}.
 
 Craig

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] install dir's BackupPC

2007-09-25 Thread Steven Coenegrachts
Hello,

Can anyone help me to get backuppc installed, Is it maybe possible that
someone posts his config here, I mean were I do have to put the different
files. I looked at Page 7 of 50 at the BackupPC documentation, but I can't
figured it out. I've not so many experience witjh linux, thus anyone who's
got some time :-)

Tnx,
Steven
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/