[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Hook on backup completion
From: |
Ben Escoto |
Subject: |
Re: [rdiff-backup-users] Hook on backup completion |
Date: |
Thu, 13 Feb 2003 09:09:28 -0800 |
>>>>> "KE" == Keith Edmunds <address@hidden>
>>>>> wrote the following on Thu, 13 Feb 2003 13:11:47 +0000
KE> What I'd like to do is detect on the backup server when each
KE> client finishes its backup. I had thought of creating an
KE> additional directory on the clients with one "flag" file in it,
KE> to be backed up after the main data backup; the backup server
KE> could regularly check for the presence of the flag and take the
KE> appropriate action when it sees the file.
KE> However, I was wondering if the session_statistics file could be
KE> used instead. Is it true to say that this file does not exist
KE> until the backup is complete? In other words, if I waited until
KE> that file, with the correct date, appeared (and then maybe
KE> waited one minute to ensure that the session_statistics file has
KE> been fully written), would that be a reasonable guarantee that
KE> the backup was complete?
The session_statistics trick will probably work fine, but it does
depend on an incidental fact about rdiff-backup. Why not stick the
notification in the script that runs rdiff-backup? The script could
run rdiff-backup and then, if that finished successfully, notify the
server.
--
Ben Escoto
pgp62kzwdSwHT.pgp
Description: PGP signature