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 before
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 before