Hi,

On 15.03.2012 15:39, Rob Hasselbaum wrote:
> Attached is a script I execute from cron that deletes old archives in a
> configured directory and then starts new archives for all hosts except
> localhost. Feel free to use it as a starting point. Should run with minimal
> modifications on Ubuntu Server.

Hihi, my script is much simpler.

But then I use pre- and post-archive scripts to:
pre archive:
  - Attach the iscsi
  - Create the mountpoint in /tmp
  - Mount the iscsi (via its link in /dev/disk/by-path)
  - Delete all old archives older then 30days
  - output "df" of the device for the backuppc log
after archive:
  - output "df" again for the logs
  - umount the iscsi
  - delete the mountpoint
  - detach the iscsi

The scripts are in /var/lib/backuppc/bin, so they are present on both 
the cluster machines. Yes, my backuppc runs as (one of many) service on 
a two-node pacemaker-cluster with shared config for the 
backuppc+apache-stack on a small drbd and /var/lib/backuppc on a bigger 
drbd...

Have fun,

Arnold

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to