Skip to contentSkip to conversation

vgcfgbackup

linux-lvm Jan Niehusmann 1 participant 1 message May 23, 2000

lore
Share & tools
lore
#0 lore raw

vgcfgbackup macht bei mir immer nur ein Backup und beh�lt die �lteren Versionen nicht. Folgender Patch scheint das zu beheben (relativ zu 0.8final)

tools/lib/vg_cfgbackup.c +1 -1
@@ -366,7 +366,7 @@
       }
 
       /* VGDA backup history */
-      for ( i = vg_max_backups; i > 1; i--) {
+      for ( i = vg_max_backups; i >= 1; i--) {
          sprintf ( vg_backup_path_old2, "%s/%s.conf.%d.old%c",
                                         directory, vg_name, i, 0);
          if ( opt_v > 0) printf ( "%s -- checking for \"%s\"\n",