LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Incremental Copy command (https://www.linuxquestions.org/questions/linux-general-1/incremental-copy-command-894210/)

shashi621 07-28-2011 01:33 AM

Incremental Copy command
 
Any please help me for incremental copy command similar to windows.

commad for copying in windows is

c:\ source\ xcopy *.* destination\ /s/c/d/q/y

any similar command is there in linux as I m new in Linux

catkin 07-28-2011 02:05 AM

IDK what /s/c/d/q/y do but the rsync command can usually do what XCOPY does and a whole lot more.

shashi621 07-28-2011 02:10 AM

please help in giving and usage of rsync command. does it do incremental copying like, updating only update files and folders

catkin 07-28-2011 06:59 AM

rsync is very fully featured so not practical to explain how to use it here, especially not knowing the effect of those XCOPY switches. Have a look here and post again if you get stuck.

mesiol 07-28-2011 07:13 AM

Code:

rsync -av $SOURCE $TARGET
will first time copy source to target and further time copy all files not existing in target.

This is NOT a mirror, means files deleted in source are not deleted in target and vice versa.

For further more information use
Code:

man rsync
rsync is also available for Windows OS.


All times are GMT -5. The time now is 06:05 PM.