I was performing a data copy by using rsync command as follows.
[...]
You said you want to copy data using rsync but the command introduces much ambiguity. Where are you trying to copy to?
The -e 'ssh' indicates that you are trying to initiate a remote connection using the ssh protocol but no host name is given, nor the arrangement of source and destination is like given.
The -a (archive) flag is a combination of many others, including -r (recursive), therefore is not necessary to have by itself.
The -z is for compression on the transmission, arguably not necessary when doing a local copy.
If we remove the -e 'ssh' we end up with a copy of a whole directory (dir) from local source to local directory (singh_directory) destination, which it has its own problems as stand. dir lives already in singh_directory.
When using / at the end of source, rsync will copy the content of the last directory.
Not using / at the end of source, rsync will copy the last directory and the content of it.
When using / at the end of destination, rsync will transfer the data inside the last directory.
Not using / at the end of destination, rsync will create a directory with the last destination name and will transfer the data inside that directory.
Hello Everyone,
this is my first post and i will aprreciate all help/critsisim if i this is not the appropriate area to post this problem.
i am brand new to unix/linux ( the admin quit ) and need help with rsync.
I need to use rsync from one machine using the ip adress to another, these... (2 Replies)
Hi experts,
this is my script to Synchronize a local directory with a remote directory my problem is server HDD contain data of 79GB but local HDD of 250GB gets full. same script for other server is working i am not getting the exact problem.
#!/bin/bash
RSYNC=/usr/bin/rsync... (3 Replies)
I'm just trying to use rsync to retreive the file from different servers with script. i want to look for a file, if the file exists, then retreive the file from different servers, and put it in one file. I have the following command.
rsync -v -e ssh jerry@openbsd.nixcraft.in:~/webroot.txt /tmp ... (5 Replies)
Hi,
I want to specify multiple remote directories but want to transfer them in a single command with one connection with remote server. This avoids entering passwords repeatedly and is also efficient.
e.g.
rsync -vrt --size-only --delete user@host:/home/user1/dir1... (9 Replies)
Hi,
I am using rsync to copy data.
rsync -auzvv --delete --exclude=.snapshot --exclude=dqextracts /gmu/install/data/ /gmuqueue/gmu/install/data
rsync -auzvv --delete --exclude=.snapshot /temp/vap/gmu /gmuqueue/temp/vap/gmu
The above statements are in /home/gmu/rsync_run. this script is... (0 Replies)
hi All,
i am using Rsync from my Production server to Drill server, it has copied most of the direcoties/files available on the source server to the production server. but i have seen a strange situation here. like in one of the directory it has copied maximum of the files but later on it got... (2 Replies)
Hi Everyone,
I am getting error while running Rsync from my machine. I have run this successfully few days before but today I am getting this some error.
/opt/csw/bin/rsync -avH /uv1016/u105/home/srd/ --rsync-path=/opt/csw/bin/rsync srd@usa7061uz943.na.xerox.net:/uv1016/u105/home/srd/... (7 Replies)
Hi experts,
We need copy 5TB data from one server to another (over a 10Gbps link). We plan to use rsync -av remote:/<path /local on destination server but there're few special requirements like:
1. data copy process should run only from 18:00 Hrs to 07:00 every day until copy is completed. Is... (1 Reply)
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,
Here is my source host and folder details.
$ hostname
source-host
$ id
uid=600000208(src-user) gid=64688(src-user) groups=64688(src-user)
$ ls -ltrd /web/Trn_File/data/
drwxrwxrwx 3 src-user src-user 4096 Feb 7 15:27 /web/Trn_File/data/
$ ls -ltrd /web/Trn_File/data/*
drwxrwxrwx 8... (1 Reply)