LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2011, 01:33 AM   #1
shashi621
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
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
 
Old 07-28-2011, 02:05 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
IDK what /s/c/d/q/y do but the rsync command can usually do what XCOPY does and a whole lot more.
 
Old 07-28-2011, 02:10 AM   #3
shashi621
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
please help in giving and usage of rsync command. does it do incremental copying like, updating only update files and folders
 
Old 07-28-2011, 06:59 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 07-28-2011, 07:13 AM   #5
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 01:31 PM
copy command jkeertir Linux - Newbie 3 05-29-2008 11:26 PM
copy command munna_dude Linux - General 19 06-21-2007 06:57 AM
Help on copy command Nishant Desai Linux - Software 3 09-20-2006 02:50 AM
Incremental Backup (tar command) maginotjr Slackware 4 07-21-2005 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration