BackupPC-users

[BackupPC-users] DumpPreUserCmd commands only on full backups?

2011-08-05 16:43:07
Subject: [BackupPC-users] DumpPreUserCmd commands only on full backups?
From: Brad Alexander <storm16 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 5 Aug 2011 16:41:44 -0400
As the subject posits, is it possible to issue a dump pre- or post-command only on certain types of backups? For instance, we run bacula at work, and apparently the director states what kind of backup is running, either Full or Incr. So in your scripts, you can do something like

if [ $1 != "Full" ] ; then
  exit 0
fi

...Rest of script...

We use it to clear some specialized logs after they have been backed up in a Full. Is something like this possible in backuppc?

Thanks,
--b
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>