Amanda-Users

Re: How could amflush NOT flush ? :o) [OFF TOPIC]

2003-07-23 11:31:02
Subject: Re: How could amflush NOT flush ? :o) [OFF TOPIC]
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Nicolas Ecarnot <nicolas.ecarnot AT accim DOT com>
Date: Wed, 23 Jul 2003 16:54:21 +0200
Paul Bijnens wrote:


   #!/bin/sh
   cd /bigdisk/amandahold/Config1
   amdump Config1
   cd /bigdisk/amandahold/Config1
   find . | cpio -pl /bigdisk/amandahold/Config2

Better add a -d option to cpio like:
   ... cpio -pdl ...
so that is does automatically create the directory named after the
date.


   amflush Config2

(Untested program, just invented here.)

Still untested program :-)



--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************