I am hoping to preserve the created time in my files at migration, and came across the patch files that will do the magic. I configured the paths on my Ubuntu machine. However it doesn’t recognise the -N when I tried
rsync -aN <file> <output path>. Would be great if anyone points out what’s missing here.
I performed these steps in
/usr/share/. to install the patches. I already had rsync installed on my ubuntu machine before.
sudo curl -O https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz sudo curl -O https://download.samba.org/pub/rsync/src/rsync-patches-3.1.3.tar.gz sudo tar -xvf rsync-3.1.3.tar.gz sudo tar -xvf rsync-patches-3.1.3.tar.gz cd rsync-3.1.3 patch -p1 < patches/fileflags.diff patch -p1 < patches/crtimes.diff patch -p1 < patches/hfs-compression.diff ./configure make
It looked like the configuration was successful despite seeing the
rm: conftest.c: resource busy messages.
checking whether -c -o works... rm: conftest.c: Resource busy rm: conftest.c: Resource busy yes checking for stunnel... stunnel checking for stunnel4... stunnel checking for _acl... rm: conftest.c: Resource busy no checking for __acl... rm: conftest.c: Resource busy no checking for _facl... rm: conftest.c: Resource busy no checking for __facl... rm: conftest.c: Resource busy no checking whether to support ACLs... Using OS X ACLs checking whether to support extended attributes... Using OS X xattrs configure.sh: creating ./config.status config.status: creating Makefile config.status: creating lib/dummy config.status: creating zlib/dummy config.status: creating popt/dummy config.status: creating shconfig config.status: creating config.h rsync 3.1.3 configuration successful Note that yodl2man was not found, so pre-existing manpage files will be used w/o change (if available) -- no .yo file changes will be used. rm: conftest.c: Resource busy
I’ve also tried the following but didn't manage to apply the patch settings.
sudo systemctl start rsync sudo systemctl enable rsync