Hello, i am using rclone to copy between two nfs shares. I want to change the ownership of the files in the destination. Right now only new files are being copied with the right ownership that i give in the command. How can i change all the files's ownership even though they are already copied?
The command i am trying to run:
RCLONE_COMMAND="rclone copy /mount/$NFS_SOURCE/ /mount/$NFS_DEST/ --metadata ${NEW_UID:+--metadata-set UID=${NEW_UID}} ${NEW_GID:+--metadata-set GID=${NEW_GID}} --links --no-update-modtime --progress --use-mmap --log-level=DEBUG --size-only --multi-thread-streams=$NUM_THREADS --transfers=$TRANSFERS --checkers=$CHECKERS --buffer-size=256M --server-side-across-configs --log-file=$LOG_FILE"
For example here the first file is freshly copied, but the other ones are old and their ownership is not changed. Is there a way to make rclone overwrite this or should i run a script to manually change all the ownership of the files?
-rw-rw-r-- 1 9999 9999 10M Jul 4 14:07 file5g31.dat
-rw-r--r-- 1 root root 10M Jul 4 14:07 file5g91.dat
-rw-r--r-- 1 root root 10M Jul 4 14:07 file5g92.dat