Permalink
Browse files

force create backup folder if exists

  • Loading branch information...
ronniedada committed Aug 21, 2013
1 parent 2b988eb commit 513539670770598858c3c9622a3798c3e59a82dc
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbooks/couchbase/recipes/restore-2.1.1.rb
@@ -20,7 +20,7 @@
mount_point = node[:block_device][:devices][:device1][:mount_point]
new_dir = "#{mount_point}" << "/back"
execute "moving data to a backup location: #{mount_point} -> #{new_dir}" do
command("cd #{mount_point} && mkdir #{new_dir} && mv *couch* #{new_dir} && " +
command("cd #{mount_point} && mkdir -p #{new_dir} && mv *couch* #{new_dir} && " +
" mv #{node[:db_couchbase][:bucket][:name]} #{new_dir}")
action :run
end

0 comments on commit 5135396

Please sign in to comment.