Tools‎ > ‎Ubuntu/Linux server‎ > ‎

rsync

to copy and backup files between two computers without recopying files that already exist (only update new or modified files)


sync (copy) files of directory Data/ with server directory DataBackup/
rsync -avz Data/ loginName@serverName:DataBackup/

copy multiple directories Exp1 ..2 ..3  (including dir names) into the backup folder
rsync -avz Data/Exp1 Data/Exp2 Data/Exp3 loginName@serverName:DataBackup/

copy files and remove all old files from server that are deleted in the original directory
rsync -avz --del Data/ loginName@serverName:DataBackup/