Article 5R1XE Copy file / directory only if on target the file exists and only if newer than target

Copy file / directory only if on target the file exists and only if newer than target

by
BudiKusasi
from LinuxQuestions.org on (#5R1XE)
How can we copy file and/or directory only if on target the file exists and only if it is newer than on target, and for the directory case it must recursively copy such with this capability
as

Code: $ ls -a ~/.config
gtk-2.0/
gtk-3.0/
SpeedCrunch/

$ ls -a /other/path/home/.config/
gtk-2.0/
gtk-3.0/
SpeedCrunch/

$ rsync -u --existing ~/.config/ /other/path/home/
skipping directory .can't work. What Linux utility and how to do/solve it ? Thank you beforelatest?d=yIl2AUoC8zA latest?i=1qLAYsB67kY:8cpTQeATpCQ:F7zBnMy latest?i=1qLAYsB67kY:8cpTQeATpCQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=1qLAYsB67kY:8cpTQeATpCQ:gIN9vFw1qLAYsB67kY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments