Sunday, 15 July 2018

linux - Unix equivalent of XCOPY /D


Windows has a nice option to its XCOPY command: /D. This copies only files where the source modification time is newer than the destination time. Is there any unix/linux equivalent of this? I'm trying to get a fast copy to my local testing server.



Answer



I usually do:


rsync -avz /from/where/ /to/dest/

If you want it to delete files that doesn't exist anymore in /from/where add --delete.


It can also be used from different boxes like this:


rsync -avz eromero@mydevbox.org:/from/where/ eromero@mybox.org:/to/dest/

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...