Ticket #250 (closed enhancement: fixed)
Prevent accidental overwrite on create rrd file
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | rrd_create | Version: | 1.2.33 |
| Keywords: | overwrite create | Cc: | tobi@… |
Description
the default seems to be that rrd_create overwrites existing .rrd files - i guess this cant be changed - but how about a flag "-nooverwrite" to error if the rrd file already exists?
Attachments
Change History
comment:1 Changed 2 years ago by oetiker
- Status changed from new to closed
- Resolution set to worksforme
comment:2 Changed 2 years ago by human
- Cc tobi@… added
- Status changed from closed to reopened
- Resolution worksforme deleted
Find attached patch to add --no-overwrite to rrd create two versions, one for 1.3.8 and one for 1.4.2 using rrd_open
Please add to distribution.
comment:3 Changed 2 years ago by human
Sorry - this doesn't work. It doesn't overwrite but it doesn't create either - Doh.
Changed 2 years ago by human
-
attachment
rrdtool-1.3.8-create-no-overwrite.patch
added
Working version of 1.3.8 patch
Changed 2 years ago by human
-
attachment
rrdtool-1.4.2-create-no-overwrite.patch
added
working version of 1.4.2 patch



Hi,
if you feel like implementing such a check (someone contributed this for rrd_restore once) I'll be glad to integrate it ...
cheers tobi