[BackupPC-users] Per-PC configuration file

2006-10-01 Thread Nils Breunese (Lemonbit Internet)
Hello all,

I have a BackupPC 2.1.2pl2 server (installed from the .tar.gz on the  
site) backing up a number of of other servers to a second drive,  
which has been working just fine for a while now. Now I want to also  
backup the backup server itself, but of course I have to exclude the  
backuppc data directory or I will start a recursive backup (backing  
up the backup data). I wanted to create a 'per-pc configuration' file  
for this host to exclude /mnt/backup for localhost.

http://backuppc.sourceforge.net/faq/BackupPC.html#configuration_file  
says:

The BackupPC configuration file resides in __TOPDIR__/conf/ 
config.pl. Optional
per-PC configuration files reside in __TOPDIR__/pc/$host/config.pl.  
This file can
be used to override settings just for a particular PC.

If I just add it to the hosts file when I do when adding a 'normal'  
host the pc/hostname directory will be automatically created, but  
then it will also start the recursive backup, so I thought I'd better  
not do that. I think I have also read about using hostname.pl config  
files on the list, but see nothing about that in the docs. Should I  
just manually create the __TOPDIR__/pc/hostname/ directory (which  
does not exist yet of course), create a config.pl inside it and then  
add the host to the /mnt/backup/backu/conf/hosts file?

Thanks in advance,

Nils.

-
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] Per-PC configuration file

2006-10-01 Thread Casper Thomsen
On Sun, 1 Oct 2006, Nils Breunese (Lemonbit Internet) wrote:

 Hello all,
(...)
 Should I just manually create the __TOPDIR__/pc/hostname/ directory 
 (which does not exist yet of course), create a config.pl inside it and 
 then add the host to the /mnt/backup/backu/conf/hosts file?

That works fine for me.

Tough, I don't exclude it, I prefer to add everything to the host-specific 
config.pl file since it easier to see what is being backed up. (Actually I 
have a hierarchy of config files such that for instance /etc and 
/usr/local/etc is always backed up if it's a FreeBSD box, etc.)

 Thanks in advance,

 Nils.


-- 
Casper Thomsen

-
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] Per-PC configuration file

2006-10-01 Thread Nils Breunese (Lemonbit Internet)
Casper Thomsen wrote:

 On Sun, 1 Oct 2006, Nils Breunese (Lemonbit Internet) wrote:

 Should I just manually create the __TOPDIR__/pc/hostname/  
 directory (which does not exist yet of course), create a config.pl  
 inside it and then add the host to the /mnt/backup/backuppc/conf/ 
 hosts file?

 That works fine for me.

Ok, I just went and did just that. It's being backed up right now.  
Thanks for confirming I was on the right track.

Nils Breunese.

-
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] how to rebuild pc/hostname/backups file

2006-10-01 Thread Stian Jordet
tir, 13,.09.2005 kl. 22.38 -0700, skrev Craig Barratt:
 Carl Wilhelm Soderstrom writes:
 
  I'm running out of disk space on my backup server, and it's run out of space
  on a couple of occasions. when it does this, some hosts 'forget' all their 
  old
  backups -- those backups no longer appear in the pc/hostname/backups file.
  
  I know the backups.old file has a copy of the last known-good backups file;
  but what happens if that one is bad as well? (Machine runs out of space,
  space is freed, a running backup is shut down, a bad backup file is written
  and clobbers the old backups.old file).
  
  I think this has been discussed on the list in the past; but can someone
  remind me how to rebuild a backups file based on the actual directories
  present?
  
  This is something that probably should be added to the docs.
 
 I need to write a script that does this for you.  It could
 also be done manually.
 
 Some information (eg: number of files backed up, total size)
 takes more work to recreate since it requires the backed-up
 tree to be traversed.  But that information is only used for
 stats/display, so it is not critical.
 
 Some information (eg: full vs incr) probably needs to extracted
 from the per-PC LOG file.
 
 Some information (eg: existing count and size of files in pool) is
 not easy to reconstruct, but again it only used for stats/display.
 
 Anyhow, this is something I should work on.  Do you need a solution
 quickly?

I just blew a fuse trying to start up too many computers at once, and
the battery on my UPS obviously isn't what it used to be anymore, so my
server died. It might seem like it was doing some backup, because the
backups file for three of my machines were empty. backups.old as well. 

So my question is, was this script ever written? I see that this is over
a year ago now. If not, how can I easiest recover?

To make things more complicated, a backup started of one computer before
I found out that the backup files had been truncated. I had one backup 0
from sometime last summer that now was overwritten. It doesn't really
matter that the old backup is lost, except that I have about 25 backups
for that machine, and 0 is the newest one. Should I just delete the 0
directory before I recreate the backups file? (When I know how to :P)

And sorry for bringing this old thread back to life.

Best regards,
Stian


-
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] how to rebuild pc/hostname/backups file

2006-10-01 Thread Craig Barratt
Stian Jordet writes:

 tir, 13,.09.2005 kl. 22.38 -0700, skrev Craig Barratt:
  Carl Wilhelm Soderstrom writes:
  
   I'm running out of disk space on my backup server, and it's run out of 
   space
   on a couple of occasions. when it does this, some hosts 'forget' all 
   their old
   backups -- those backups no longer appear in the pc/hostname/backups 
   file.
   
   I know the backups.old file has a copy of the last known-good backups 
   file;
   but what happens if that one is bad as well? (Machine runs out of space,
   space is freed, a running backup is shut down, a bad backup file is 
   written
   and clobbers the old backups.old file).
   
   I think this has been discussed on the list in the past; but can someone
   remind me how to rebuild a backups file based on the actual directories
   present?
   
   This is something that probably should be added to the docs.
  
  I need to write a script that does this for you.  It could
  also be done manually.
  
  Some information (eg: number of files backed up, total size)
  takes more work to recreate since it requires the backed-up
  tree to be traversed.  But that information is only used for
  stats/display, so it is not critical.
  
  Some information (eg: full vs incr) probably needs to extracted
  from the per-PC LOG file.
  
  Some information (eg: existing count and size of files in pool) is
  not easy to reconstruct, but again it only used for stats/display.
  
  Anyhow, this is something I should work on.  Do you need a solution
  quickly?
 
 I just blew a fuse trying to start up too many computers at once, and
 the battery on my UPS obviously isn't what it used to be anymore, so my
 server died. It might seem like it was doing some backup, because the
 backups file for three of my machines were empty. backups.old as well. 
 
 So my question is, was this script ever written? I see that this is over
 a year ago now. If not, how can I easiest recover?
 
 To make things more complicated, a backup started of one computer before
 I found out that the backup files had been truncated. I had one backup 0
 from sometime last summer that now was overwritten. It doesn't really
 matter that the old backup is lost, except that I have about 25 backups
 for that machine, and 0 is the newest one. Should I just delete the 0
 directory before I recreate the backups file? (When I know how to :P)
 
 And sorry for bringing this old thread back to life.

In BackupPC 3.0.0 an additional copy of the per-backup information is
stored in each backup directory, which readily allows the backups file
to be re-created.  Also, the writing of these files is now verified
by writing to a temp file, re-reading and checking the contents,
before replacing the original.

BackupPC 3.0.0 includes a recovery script BackupPC_fixupBackupSummary
that re-creates the backups file.  It includes the -l option for
legacy mode that looks through the log files to recreate backup
files from 2.x.

Unfortunately BackupPC_fixupBackupSummary won't run without changes
on BackupPC 2.x since it depends on some new modules in BackupPC 3.0.0
(BackupPC::Storage).

You should be able (but I haven't confirmed) to install BackupPC 3.0.0
in a new directory (pointing it at the old data store) and just run

BackupPC_fixupBackupSummary -l HOST

Make sure you keep a copy of the main config.pl file so you
can revert back to it when you restart BackupPC 2.x.

Or you could actually upgrade to BackupPC 3.0.0, although I don't
recommend that right now since it's best not to change too many
things when you are trying to recover from a problem.

Craig

-
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/