[Veritas-bu] the amount of backup data in the last 24h
2004-03-06 23:34:30
Subject: |
[Veritas-bu] the amount of backup data in the last 24h |
From: |
David Rock <dave-bu AT graniteweb DOT com> (David Rock) |
Date: |
Sat, 6 Mar 2004 22:34:30 -0600 |
--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* kurbis gemuse <kurbisgemuse AT hotmail DOT com> [2004-03-06 00:01]:
> Hi all! I'd like do know if is there another way to generate a result of=
=20
> the last 24 hours of backed up data in a Netbackup 4.5 Datacenter server.
>=20
> Here's the code we have:
>=20
>=20
> date > /tmp/backup.txt
>=20
> echo "Backups executed in the last 24 hours" >> /backups.txt
>=20
> /usr/openv/netbackup/bin/admincmd/bperror -all -hoursago 24 | grep=20
> "successfully wrote backup id" | awk '{bytes=3Dbytes + $20} END {print=20
> "backed up",bytes," Kbytes of data"}' >> /backups.txt
>=20
> /usr/openv/netbackup/bin/admincmd/bperror -all -hoursago 24 | grep=20
> "successfully wrote backup id" | wc -l | awk '{print "Backups with sucess=
:=20
> ",$1}' >> /backups.txt
>=20
>=20
> I would like to know if this is the rightest way to do it or if is there =
a=20
> better way.
You could use bpdbjobs to get a report of information in the Activity
Monitor that would be cleaner. bpdbjobs -all_columns will give you a
comma separated record with VERY detailed information.=20
--=20
David Rock
david AT graniteweb DOT com
--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFASqZWMrO4/Yb/xwYRAstNAJ4p2FscPqbzxq5X4b2KE0mLUJEj/ACgqS2m
AkZ4JFBZ3L9A/OsZv6iDHNw=
=FOGe
-----END PGP SIGNATURE-----
--y0ulUmNC+osPPQO6--
|
|
|