Server :: Rsync Files And Directories From A RedHat Host To A Windows Server 2003R2?
Jun 9, 2011
I'm trying to rsync files and directories from a RedHat linux host(v 4.5 & 4.7) to a Windows server 2003R2 Standard Edition with cygwin running. I'm executing the rsync command from the cygwin shell. The transfer involves rsync'ing approximately 1 TB of data from the linux server to the windows server. After about 280+GB of data transfer, the transfer just dies.
There seems to be no particular file or directory that the transfer stops at. I'm able to rsync GB's of data from other linux hosts to this cygwin server with no problem. Files and directories rsync fine.The network infrastructure is essentially the same regardless of the server being rsync'ed in that it is GB Ethernet running through Cisco GB switches. There appear to be no glitches or hiccups across the network path.
I've asked the folks at rsync.samba.org if they know of any problems or issues. Their response has been neutral in that if the version of rsync that cygwin has ported is within standards then there is no rsync reason this problem should happen.I've asked the cygwin support site if they know of any issues and they have yet to reply. So, my question is whether the version of rsync that is ported to cygwin is standard. If so, is there any reason cygwin & rsync keep failing like this?
I've asked the local rsync on linux guru's and they can't see any reason this should fail from a linux perspective. Apparently I am our company cygwin knowledge base by default.
Has anyone had any experience on using SUA(Services for UNIX Applications) rsync to "pull" files down to the Win2k3R2 server from a linux rsync host?I was trying to use cygwin rsync before until I found out from cygwin that the cygwin port of rsync was "flakey" and would fail intermittently for no apparent reason. cygwin suggested I use SUA or SFU for rsync services.
I've looked for/ am looking for any experience using SUA rsync to copy files down from a linux rsync host to the Windows host via rsync on the Windows host. Also, if you have done this successfully, do you have any pointers/caveats you can share on how you got it working? What I am basically looking to do is copy files and subdirectories of files from a linux host using rsync to some static location on a Windows server on a scheduled basis so that I can backup the windows server to tape using Symantec's Backup Exec application.
I'm doing it this way to avoid deploying the Remote Agents for either linux or Windows on the target hosts. As an alternative I've seen reference to a product called DeltaCopy that uses a native Windows rsync port with the native linux port of rsync to do what I need also.I realize this is not a strictly linux question, but more of a hybrid as I'm moving data to and from Windows and linux hosts. So, if this is too Windows-y a question, please say so and I'll withdraw my question.
My server running on RHEL/Solaris went down of its own. I have rebooted the box and now the host is up. what are all the log files do i need to check to find root cause for this issue. I have already checked /var/log/messages and sar logs but not of much help.
I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B.
I've 15 web servers (in private network) running RHEL, Apache. Needs to sync web files between them. each server is accessible to each other via public key (with passphares).
1) Main server is web1 (where dev upload files initially). So I can make all other servers accessible by web1 without password/passphares and run rsync periodically to update files between them. But security is an issue here as all servers will become easily accessible.
2) Run rsync daemon in all other servers (except web1) on designated port and run rsync command from web1 to sync files. This will do the work but running daemon in all servers might increase overhead and making sure that daemon is running all the time etc. are my concern for this implementation.
iam trying to sync file server data into backup server machine by command- rsync -avu path/of/data ipaddress-of-backup-server:/path/where/to/save after running it ask for root password and manually it is successful.but i want to make it automatic.for that i also tried cronjob and also generated authentication key but iam not successful in login automatically..anybody know how to authenticate root to login for storing data in backup server.
I have a newly built Redhat 5.5 box. When connecting over VPN and executing either "ls -al" or "df -h", the command prompt hangs without returning any output. Have got same result with TeraTerm and Putty clients. However, other commands run fine. Also,local users are able to run "ls -al" or "df -h" successfully.Storage is local disk. Any idea what could be mis-configured.
Basically I download to main PC and rsync to my pi as the pi has a fraction of the speed for some reason when downloading form a source outside of my network.
The first few files will sync fine. Then I start getting errors like this
Code: Select allrsync: rename "/data/temp/.File.ext.y1716M" -> "File.ext": No such file or directory (2)
The directory on the host has user and group ownership as pi. Rsync has been setup to login without a password.
For some reason, my user directories don't seem to process php files. For example, server/~reduxtion/index.php forces the browser to download the file while server/index.php is fine.
Don't ask me why, but I need to back up a website with complete structure to a windows machine (so no tar/gzip - just an identical copy). I'm experienced with rsync, so I thought to do it that way. However, in the process I'm bound to lose my ownership/permission settings for each file and that will give problems when placing back certain files. Is there a way to either:
1. save those settings on a windows machine? 2. have an easy way to save the filetree with relevant information and a shell script to attach the info back when uploading files again?
Right now i have a HP DL 180 Server with 130 Gb Hard Disk & 8 Gb ram after Raiding0+1. i want to configure Domain Controller Server for my office for 200 to 300 Users. what should the partition size must be mentioned in my 130 Gb Hard Disk, is that going to be Sufficient for ME ?
i am bit confused about /Usr /Var /Boot partitions, as i need to manage perfectly in 130 GB
if i go with 4 Gb swap and remaining for " / " is that will be fine ? should i need to specify partition sizes separately for / tmp /var / usr ..
Many of mails sent from my mail server that are in Queue;The main reason is deffered by domains like yahoo,aol,etc.but there is one more error that i keep getting and that is Host Unknown,Below is an example from mail log,The catch is,test mail sent on the same email id sent from my personal mail from the same server i.e. url was deliveredHowever,another mail containing client information sent from customercare@mycompanysdomain ended up in queue.
There are more examples of the same,around 20 domain have the same problem.
i have an ubuntu server 4 windows client..i use putty or webmin. would like to copy some folders for example: "My houses"to be backup everynigth to the ubuntu server..can somebody give me an easy way for doing this with rsync and smb or cifs.
I configured my dns server running on redhat5(test.com, ip-192.168.10.1), all is working perfect on the server its-self and on the client machine(xp), it cant resolve the name [url] but can resolve when i use [url]are ok, nslookup displays the following error:
The reverse is working fine from the redhat machine, NO firewall on the client xp machine xp as host name is added in /etc/hosts
After what feels like weeks have tinkering around trying to get a Samba file server set up, I've finally given up! I have 4 drives and 2 groups:
1) Dev - Available to all users in both groups (normal and admin) 2) Misc - Available to users in admin group only 3) Admin - Available to users in admin group only 4) Accounts - Available to users in admin group only
Drives 1 and 2 are working fine, with the correct access rights. Drives 3 and 4 can be browsed by admins only, but no changes can be made at all - files & directories can't be renamed/moved/deleted. What is most confusing is that Drive 2 is set up exactly the same as Drives 3 and 4. The process I went through to get them working:
we are running a Red Hat Enterprise Linux ES release 3 (Taroon Upd 5) Kernel 2.4.21-32.ELsmp since several years. The server hosts an old ERP system who will be replaced at the end of the year.However it is necessary that some collegues are able to write some files to that server regulary. Since we are running Windows 7 on several machines, those users aren't anymore able to write to the samba share. Getting files from the share works fine.
But the problem seems not to be situated at the samba service because also the transfer using SSH (WINSCP) from any Win7 system to the server doesn't work.During testing we recogniced that transfering files smaller then 1kb works fine ... any file greater then 1kb ends up in an connection abort. This works with samba and also using SSH.All the workarounds editing some registry entries in Win7 for improving the interoperability between vista / win7 and samba don't work for us ... and also seem not to be the source of the problem.Is there a general known incompatibility between our RHEL version / kernel and Windows 7 regarding file transfers?
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
I just had one hell of an experience trying to get openSUSE 11.2 to run on VMware server 2.0 on a Windows XP host. I am posting some instructions on how I finally got things working.
1) Download the openSuse iso image (and add-on CD if needed)
2) Download and install the VMWare server
3) Before you try to start the server console, you will need to configure the web access to allow you to log on. go to press Start->Programs->VMware->VMWare web access->Configure Tomcat
4) on the logon tab check logon as: option
5) add your account there and set the password
6) Now in your web browser (I use firefox) access the console via: [url] [url]
7) Before you start to create a virtual machine, you will want to set up the server to have access to your iso's. The server will only allow VM's access to specific directories through "datastores". You can either move the iso images to what has been specified as the default datastore... or create another datastore that points to the where you have the iso's.
8) Now we can create our virtual machine. This is simple, just press the button and follow the prompts.
a) at some point it will ask about an CD-Rom, you will want to use your suse DVD iso image. Select the option and then navigate the datastore that contains the image. Once found click and continue.
b) Network interface has 3 choices:
Bridged - the virtual machine will appear on the network as any other computer. Allows the VM to host server applications. User needs to have control over the network to ensure DHCP requests are handled (or static IP is assigned).
NAT - VMWare server will manage a virtual router, the VM is then connected to this router. On this router, the hosts internet is used as the WAN. Users do not have to have control of the network, but will have to setup port forwarding in VMWare to host server applications
Host Only - This means that the virtual machine can only talk to the host. The only way to get networking is to have a proxy through the host machine. This is setup on the host independent of VMWare. Users do not need control of the network, but control over the host. I doubt you could host server applications though.
9) With the VM created we can start it up. We can open a window to it through the console tab of the VMWare server console. When I first started it, it was stuck looking for an OS once the console finally rendered the graphics. A reset, an F2 at the post and selecting the appropriate boot media for boot got the installation started.
10) Install Suse as you would any other suse installation. I added a separate partition for swap, but kept the rest on one big one. Others may still want to maintain the separation of home and root
11) ---- Important Error/Solution ----
Once the installation has completed many will notice that the mouse or keyboard does not work! This was the source of my biggest head-ache. Some may think it was a problem with VMWare tools... I tried that to fix that and found the tools were working properly.
Will there be any issues installing and then subsequently running a Microsoft Windows Server 2008 R2 installation on a VirtualBox VM on a Linux host (Ubuntu 11.04 64-bit)? I require Windows Server 2008 R2 for a course I'm taking, and I dont have any systems to install/deploy it onto.
Host Machine Specs:
Ubuntu 11.04 64-bit 4GB RAM 350GB Disk Space Nvidia Quadro system
I am trying to set up samba in my CentOS virtual machine that is running on a Windows 7 host. I have found a tutorial in the How-Tos on this site but I'm not sure if they are exact and I'm paranoid about messing something up. The link to the tutorial is below. Is there anything that I should do different or anything that I should be aware of? Also, once this is set up, how do I transfer files between the two machines?
I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.
I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.
Code:
Here is the rsync command embedding in the .sh script.
I have been able to find enough information that I need to enable 'time-udp' in /etc/xinetd.d/ But there isn't an entry for time-udp. How do I enable time-udp (Time of Day server) on a Red Hat system? It's RHEL 5.6 64bit.