Hi everyone,
I'm pretty new to rsync and I've been tasked to "fix" an existing .sh to make it work the way I need it to.
I have the following rsync set up on a cron job:
and the following .rsync-filter file:
Currently, this setup synchronizes the "docs" folders for each subdirectory (Ex: ../das/htdocs/docs) which is what I need it to do. But it also deletes any other files and folders on the target directory which were migrated manually and ought to be excluded (Ex: ../das/htdocs/images or ../em/localdocs/). I want to continue to have the "docs" subfolders sync'd automatically but I need to be able to migrate files into it's parent directories manually without getting them wiped by rsync.
My question is how do I modify this script to only sync the "docs" subdirectories and leave any others untouched? I've looked at the man page of course but my understanding is that the --delete option should only affect files in the "docs" directories, and won't touch files excluded in the filter file.
Thanks for any help you can give, this is driving me crazy.
- Russell
I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location
I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Hi all,
I'm new to the rsync world in hpux. Currently I have rsync going through the main public lan, but dude to traffic loads, I have been told that i need to use a dedicated rsync lan.
I currently have 4 spare nics and the plan was to use one of these for the rsync, but I can't figure out... (2 Replies)
I'm trying to use rsync to sync some data from my windows laptop to my linux openSUSE home sytem using cwRsync.
The process has always worked until I got a new laptop and more or less at the same time decided to rebuild my linux box.
on linux
rsync --version
rsync version 3.0.7 protocol... (2 Replies)
Am I correct in assuming that the following command:
rsync -a /a /b
does not make any changes on /a if there are files on /b that are newer (2 Replies)
hi there I wonder if some-one can help.
I am trying to use rsync on my mac to transfer a folder to a remote machine.
I have logged into rysnc on my mac no problem and I'm trying to execute this command:
rsync -a -e ssh /Users/myname/myfolder/sourcefolder/... (3 Replies)
i last night i copied a 400GB folder using rsync and ssh i did:
rsync -r /mnt/500_GB ssh miguel@192.168.1.3:/mnt/1500_GB
and it copied the folder fine all 400GB.
The question is: If i put more files to that initial 400GB folder, which command can i run on my server for it to update the... (4 Replies)
Dear all,
I m trying to rsync a file remotely but it is throwing following error.
#/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in... (10 Replies)
Hi guys,
I will be copying data from one FS to another. (only once)
These are local Filesystems...
Which tool would be more efficient to use in this case?
There is a huge amount of data that needs to be copied... (1.5TB)
John (1 Reply)
I want to do rsync only for the difference in the last 30 days. How do I specify the "30 days" on the command line below?
>rsync -avz prj# /rsource /destination
Thanks for help (6 Replies)