diff --git a/src/com/platform/glusterfs/CopyData.java b/src/com/platform/glusterfs/CopyData.java index 0b226c77..86a0501c 100644 --- a/src/com/platform/glusterfs/CopyData.java +++ b/src/com/platform/glusterfs/CopyData.java @@ -92,7 +92,7 @@ public class CopyData { log.info("3202 "+sourceFolderName+"/"+fileName+" is not exists"); return -2; } - String command = "cp -r " + sourceFolderName + "/" + fileName+" "+destFolderName; + String command = "cp -rp " + sourceFolderName + "/" + fileName+" "+destFolderName; /* * RunCommand runCommand = new RunCommand();