Advertisement
vedranvinko

sync between dirs

May 4th, 2020
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. rsync -avu path/to/dir/fileA path/to/dir/fileB
  2.  
  3. -a do the sync preserving all filesystem attributes
  4. -v run verbosely
  5. -u only copy files with a newer modification time (or size difference if the times are equal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement