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.php&p=sourceforge&CID=DEVDEV _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/