marsadm: use backup-dir at merge-cluster

This commit is contained in:
Thomas Schoebel-Theuer 2017-09-12 10:17:39 +02:00 committed by Thomas Schoebel-Theuer
parent e4aa7c0364
commit 12eaa4be27

View File

@ -1853,7 +1853,8 @@ sub merge_cluster {
lprint "\t$res\n";
}
# INTERNAL, for debugging and error analysis: backup the old uuid symlink
system("mkdir -p $mars/uuid-backups; cp -a $mars/uuid $mars/uuid-backups/") unless -l "$mars/uuid-backups/uuid";
my $backup = "$backup_dir/uuid-backups";
system("mkdir -p $backup; cp -a $mars/uuid $backup/") unless -l "$backup/uuid";
}
# Start the "hot phase"
my $rsync_cmd = "--max-size=1";