Migration: Ensure destination directories exist when moving RRDs
authorAaron Brady <bradya@gmail.com>
Sun, 15 Jan 2012 13:16:37 +0000 (13:16 +0000)
committerAaron Brady <bradya@gmail.com>
Sun, 15 Jan 2012 13:16:37 +0000 (13:16 +0000)
commitb3bb5e85375bae10ea5d6ff5c205a069d5d26654
tree49b4352d715ee4e613e42dffe6aa5d729f1d44eb
parent3e38e2981592bf0ba87f8c63ec8a4c29ec9ef702
Migration: Ensure destination directories exist when moving RRDs

If you have not run collectd 5 before, then when type instances
are migrated to plugin instances the destination directories
may not already exist. For example:

mv "./test/df/df-mnt-dlna.rrd" "./test/df-mnt-dlna/df.rrd"

This one-liner does a mkdir -p of the destination before
attempting to move the file.
contrib/migrate-4-5.px