Am Montag 02 Juli 2007 19:11 schrieb Craig Barratt:
> 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).
Yes. Thank you. The new version in appendix should do that.
Additional features are:
* list existing backups incl. date of backup
* can delete all backups till specified date
>
> 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.
Yes. A syncronisation between BackupPC_dump and BackupPC_deleteBackup is 
(unlikely or not) needable.
But I didn't know enough about perl. Maybee the backuppc developer want to 
integrate my idea in a perl script and/or in the GUI.
>
> Craig
Matthias
-- 
Don't Panic

Attachment: BackupPC_deleteBackup
Description: application/shellscript

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