neonep
Programmer
- Jun 26, 2003
- 34
Is there a way to tell rsync not to download a file if it already exists in the local file system? Here's the command that I use.
/usr/bin/rsync -Huzr --include=*.txt --exclude=* user@server::MODULE/myfiles/ .
I am using rsync version 2.6.2. I thought that the "u" option makes it so that it doesn't download if the file already exists but it's not working. Every time I run this command, it deletes my files on my local drive and re-transfers them from the server.
Any help will be greatly appreciated.
/usr/bin/rsync -Huzr --include=*.txt --exclude=* user@server::MODULE/myfiles/ .
I am using rsync version 2.6.2. I thought that the "u" option makes it so that it doesn't download if the file already exists but it's not working. Every time I run this command, it deletes my files on my local drive and re-transfers them from the server.
Any help will be greatly appreciated.