mv with rsync functionality

I’m trying to merge two directory trees that have many common elements but also each have elements that are only present in one of the two trees. The main issue I am having is that when mv encounters two sub-directories with the same relative paths it either keeps the source (with -f) or the destination (with -n) but I can’t make it take the union of both sub-directories. I could of course use rsync with --remove-source-files but this will actually copy the data and then delete the old files as opposed to a true move. The two directory trees contain several hundred GB of data and are both on same partition so I would love to do a true move if possible for the sake of time.

rsync and xfr#1, to-chk=0/1, what do they mean?

I do stuff such as :- $ copy debian-8.2.0-amd64-DVD-1.iso /media/shirish/4719-38E5/ Copy here is an alias for :- $ alias copy alias copy='rsync –progress -ravz' When it does the command it takes a long time to complete and does :- $ copy debian-8.2.0-amd64-DVD-1.iso /media/shirish/4719-38E5/ sending incremental file list debian-8.2.0-amd64-DVD-1.iso 3,607,855,104 100% 9.11MB/s 0:06:17 (xfr#1, to-chk=0/1) sent … Read more

Why is rsync not found?

rsync -avP /home/user/.profile hpux3:/home/user/.profile bash: rsync: command not found If I did ssh to hpux3 machine rsync version 3.1.1 protocol version 31 Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ output truncated I have set PATH in $HOME/.profile and $HOME/.bashrc. Should I set it in the /etc/profile file? Answers: Thank … Read more