Hello all,
I want to copy all files on the SRC side to the DST side without deleteing
any from the DST side. However, whenever I run rsync the files on the DST
side are deleted if they were deleted from the SRC side. What am I doing
wrong?
I am running the following command:
=======================================================rsync -avz --progress
--force --delete-excluded --exclude-from=exclude.txt
myroot@192.168.1.2:/mnt/array1/ /mnt/harddisk3/
=======================================================
This is what is in my exclude file:
=======================================================debian:/home/jchaven/scripts#
cat exclude.txt
thumbs.db
Thumbs.db
Temp/
debian:/home/jchaven/scripts#
=======================================================
Here is the result with a new file to synch on the SRC side:
=======================================================debian:/home/jchaven/scripts#
rsync -avz --progress --force
--delete-excluded --exclude-from=exclude.txt myroot@192.168.1.2:/mnt/array1/
/mnt/harddisk3/
myroot@192.168.1.2's password:
receiving file list ...
76280 files to consider
IT/Projects to Archive/
IT/Projects to Archive/New Text Document.txt
0 100% 0.00kB/s 0:00:00 (1, 42.0% of 76280)
sent 71 bytes received 1555447 bytes 58698.79 bytes/sec
total size is 22762378976 speedup is 14633.31
debian:/home/jchaven/scripts#
=======================================================
Here is the result with the new file deleted on the SRC side. I do not want
it deleted on the DST side - but it is:
=======================================================debian:/home/jchaven/scripts#
rsync -avz --progress --force
--delete-excluded --exclude-from=exclude.txt myroot@192.168.1.2:/mnt/array1/
/mnt/harddisk3/
myroot@192.168.1.2's password:
receiving file list ...
76279 files to consider
deleting IT/Projects to Archive/New Text Document.txt
IT/Projects to Archive/
sent 51 bytes received 1555357 bytes 66187.57 bytes/sec
total size is 22762378976 speedup is 14634.35
debian:/home/jchaven/scripts#
=======================================================
rSync version used an Debian "etch" (debian 2.4.27-2-386):
=======================================================debian:/home/jchaven/scripts#
rsync -help
rsync version 2.6.4 protocol version 29
Copyright (C) 1996-2005 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, IPv6, 64-bit system inums, 64-bit internal inums
=======================================================
Thanks,
Charles Haven
Note: This email does not contain any attachments. If an attachment is
present you are advised to not open it. Pink Floyd rules!
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful. Please immediately contact the sender if you have received this
message in error. Thank you.
-------------- next part --------------
HTML attachment scrubbed and removed