I want to copy data from main hard disk to 2nd hard disk in CentOS. But whenever i run copy command the whole data actually moved rather than copying. Its about 230GB of data in public_html/folder1 .. can anyone help me in copying folder from SDA1 to SDB1? Thanks
you can use cp command: cp -r path/to/copy/ destination/folder Or you can use rsync command to copy the data to another drive: rsync path/to/copy/ destination/folder Kailash
My favorite way to copy an entire directory structure in UNIX/Linux is: cd [source] find . | cpio -dumpv [destination] This will recursively copy the directory structure of the current directory, while keeping ownership and permissions in tact.
You can also save ownerships and permissions with rsync.. rsync -vrplogDtH /path/to/copy/ /path/to/copy/to