Matthias writes:

> Am Sonntag 01 Juli 2007 18:51 schrieb mna.news:
> > Le dimanche 1 juillet 2007 15:58, Matthias Meyer a écrit :
> > > Hello,
> > >
> > > It is possible to delete a backup? In the documewntation I only find
> > > how to delete all backups from one host.
> > > But I want to delete the last backup from one host and maybee also an
> > > intermediate (e.g. backup number 5 of 12) backup from one host.
> > > Is that possible?
> >
> > you can do this deleting the adequat subdirectory in the rigth pc's tree.
> > then edit the file named "bakups" and remove the consider ligne.
> > that's all ...
> >
> > during the night the pool will be clean as necessary.
> Thank you:
> 
> Here is a bash-script which do this job. Maybee the developers decide to 
> implement this in the web interface.

It's a little trickier than that.  If you remove a backup you need
to also remove any subsequent backups that depend on it (eg, any
incrementals of higher level than the one you are removing, until
you reach a backup of the same or lower level than the one you are
removing).

Also, since your script might run asynchronously, and you rename
the backups file after removing the backup, there is a race condition
that the backups file could be updated before you copy a new one.
However, I agree that's unlikely.

Craig

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to