Tag: rsync

Rsync and details on what has changed

Naveen Nayak January 13, 2017 No Comments Linux

Setup  # create a directoy and a couple of files  mkdir /tmp/mydir1; mkdir /tmp/mydir1/data; echo “hello” > /tmp/mydir1/hello.txt; echo “name is john” > /tmp/mydir1/name.txt; mkdir -p /tmp/mydir1/dir1/dir2/dir3/dir4/dir5; # copy the directory with all permissions etc to a new directory  # -a : copy exactly with owner, group, permissions etc # -r : recursive cp -ar /tmp/mydir1 […]

Page 1 of 1