"Christian G. Warden" writes:
> > "Christian G. Warden" writes:
> > > BackupPC seems to have lost track of old backups for one of our
> > > machines. All of a sudden, it started back at backup #0. The old
> > > backups are still in the pc/<machine_name/ directory, but the CGI
> > > interface doesn't list them.
> > > No other machines have exhibited this behavior.
> > > Any ideas?
> > This probably means the backups file (pc/<machine_name>/backups)
> > somehow got corrupted, or the backup file system filled up. Is
> > there a pc/<machine_name>/backups.old file that is non-empty?
> backups and backups.old are identical. I guess I caught this too late.
> > There isn't an automatic way to recreate the backups file,
> > but the information there is pretty simple.
> > If you really need to get those backups back I could write
> > a script that creates a default backups file. Most stats
> > (eg: size, #files, #errors) will be lost.
> I took a look at Lib.pm. Which of the BackupFields are required to be
> correct in the backups file? I'd like to get those lost backups back
> into BackupPC.
See the documentation. At a minimum you will want to populate:
num = backup number (equal to the directory number)
type = either "full" or "incr"
level = 1 for incr and 0 for full
mangle = 1
compress = 1
noFill = 1 for full and 0 for incr
startTime = set to the mtime of the backup directory
endTime = set to startTime + some fixed number (eg: 3600)
fillFromNum = number of previous full if an incr, otherwise empty
See BackupPC_dump for how these fields are filled in.
You can call the $bpc->BackupInfoWrite() function to
write the file.
Get latest updates about Open Source Projects, Conferences and News.