Ubuntu :: Rsync Between Windows XP And Headless 9.10

Mar 23, 2010

I've been trying to get my headless Ubuntu 9.10 server to back up files from my Windows XP box and onto a 1 TB Seagate FreeAgent Go USB drive (which is connected to the Ubuntu server). I've tried two different methods, both of which are behaving strangely and not quite working. I'm using SSH to access my Ubuntu server.

The /etc/fstab line for the USB drive looks like this:

Code:

/dev/sdb1 /media/usb-backup-windows ntfs uid=34,gid=34,umask=022,dirsync,sync 0 0

I'm using NTFS because I'd like to share this drive between Windows and Linux. The drive gets mounted fine and I can read/write files after booting up. The way I'd like for this to work is to have my Ubuntu box mount the Windows drive using CIFS. So I mounted the C drive using the following command:

Code:

smbmount //windowsxp/C$ /mnt/windowsxp/C -o directio,iocharset=utf8,noperm,nounix,ro,credentials=/home/user/.smb/passwords.conf

The mount works fine. I can browse directories under /mnt/windows/xp/C, read files, copy files to Ubuntu, etc. So now I have my USB drive mounted and the C drive on my Windows box mounted. Should be good to go, right? Unfortunately, after several minutes (this varies, sometimes it can go an hour or so) of copying files using rsync --archive /mnt/windowsxp/C/ /media/usb-backup-windows/C/ (the actual command I use has more options - not sure if that's important), the server locks up.

The SSH session dies and I can no longer ping it. The server will eventually start responding after several minutes, only to lock up again a few minutes later, and so on and so on. When it locks up, the following messages end up in /var/log/kern.log:

Code:

CIFS VFS: Unexpected lookup error -26
CIFS VFS: No response to cmd 46 mid 59789
CIFS VFS: Send error in read = -11
CIFS VFS: server not responding

I did some Googling on these messages and came across a suggestion to set /proc/fs/cifs/OplockEnabled to 0. I gave that a shot but it didn't make a difference. I also tried plugging in a mouse and noticed that I could make the server respond immediately after a lock up by moving the mouse. I have to move the mouse though - just leaving it plugged in without movement doesn't help. I have to wait for the hang to occur and then move it. Once I do that, things progress for another few minutes.

This got me thinking that I had a lack of entropy and the mouse movement was kicking things into gear. So I tried moving /dev/random to /dev/random-chaos, and created a symlink /dev/random that just pointed to /dev/urandom. This didn't work - same exact behavior. So why in the world does moving the mouse bring the server back and cause it to start responding, if only for a few more minutes until the next hang?

I then gave up on this approach and tried connecting to an rsync daemon running on my Windows box (using Cygwin), instead of using the CIFS mount point. After getting the config file right and figuring out how to run it as a service on Windows, I started getting files copied once again. However, after what seems to be about the same length of time (several minutes to an hour or so), the rsync connection dies and I get the following message in the Windows rsync log file:

Code:

2010/03/22 13:01:01 [4024] rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Connection reset by peer (104)
2010/03/22 13:01:01 [4024] rsync error: error in rsync protocol data stream (code 12) at io.c(1539) [sender=3.0.7]

The Windows box is running rsync 3.0.7 and Ubuntu is running 3.0.6, but they are both protocol 30. The rsync error log on Ubuntu doesn't help much - it also says "Connection reset by peer". I've tried this at least a dozen times and it always fails with these messages. It's weird because it's always 4 bytes, never anything different. I also noticed that /var/log/kern.log had the following messages, although they do not line up with the times that rsync died:

Code:

usb 1-5: reset high speed USB device using ehci_hcd and address 2

I did some Googling on this message and tried some stuff that worked for other people. I added dirsync and sync to /etc/fstab. I tried setting /sys/block/sdb/device/max_sectors to 64. Neither one of those made a difference. unloading the ehci_hcd module and dropping back to USB 1.0. However, 9.10 doesn't seem to have that module loaded, so I'm not exactly sure how to turn off USB 2.0 and just try 1.0. I'm not real enthused with that workaround anyway because I have at least 500 GB to copy.

I've kind of run out of ideas here. It's frustrating because the entire reason I bought the hardware and set up Ubuntu was to run backups. I'm not sure if my problem is a networking issue (CIFS VFS server not responding, connection reset by peer), a problem with running headless (wiggling the mouse temporarily prevents the hang), a USB device problem (reset high speed USB device messages), or something else entirely.

View 6 Replies


ADVERTISEMENT

General :: Windows - Select OS Via Grub On Headless System?

Jul 20, 2010

I have a dual boot system (Linux and Windows) that I normally run headless and which boots by default into Linux (which is what I use mainly). This all works fine, except that on occasions when I want to boot Windows I have to plug in a keyboard and monitor just to select Windows in the initial grub boot screen. I'm wondering if there is an easier way to do this ? I don't mind if I have to boot Linux first, I just want to be able to reboot into Windows occasionally without having to plug in any peripherals.

View 2 Replies View Related

General :: Windows - Set Up A Virtual Machine In A Similar Way To A Headless Server?

Aug 16, 2011

I have an Ubuntu Desktop 11.04 virtual machine using VirtualBox on my Windows 7 system.

Up until now I have been doing all my development within the Ubuntu environment but unfortunately, I don't like it. I want to move back to Windows, which is much more familiar to me but I would still like to access the virtual box like a virtual server as it is already set up with Apache, PHP, Pear, Git etc...

How can I make the two work in harmony? I essentially want to be able to start the VM and connect to it as if it was a server machine somewhere on my network, without having to actually buy another machine to put on my network.

View 3 Replies View Related

Ubuntu :: Backing Up Data Using Rsync Via SSH From Windows

Feb 19, 2011

I am backing up may data using Rsync via SSH. I am trying to find a solution that allows me to push my backups from windows and Ubuntu to a Ubuntu server. I don't like the solution that requires my windows machines to have shared drives. Not viable for laptop users that may piggyback on free wireless networks. I would also like a solution that has a GUI for the desktop user but not totally required. I will need a solution that allows me to restore files by date. I do a lot of changes to files on a daily basis and sometimes need an older copy of a file.

I love using Rsync as it is a very simple solution and extremely quick. The only thing I don't know how to do is recover different version of a file. It would be nice to see a visual representation of all the files and different dates of each file. I know I might be asking a little too much, but, it is after all, Linux.

View 2 Replies View Related

Ubuntu Networking :: Mount Windows PC To Backup Using Rsync

Jul 1, 2011

I want to backup windows PC's in my network to my ubuntu 11.04 pc, using rsync. Rsync is working, but I have to mount the pc's. A few details.
My server is named: server
The windows pc is named: \PC_OF_MARTIJN
The folder where the mount is coming is: /home/bastiaan/backup/mounts
Credentials are in /home/bastiaan/backup/credentials and they're called: martijn

So what I'm going to add to /etc/fstab is this:
Code:
//server \PC_OF_USER /home/bastiaan/backup/mounts/user cifs credentials=/home/bastiaan/credentials/user,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Will this work?

View 4 Replies View Related

General :: Rsync A Share On A Windows Box

Feb 11, 2010

I've figured out about half of the problem this time. I've duplicated the directory structure of the Windows machine on the Linux server.

I then proceed with mounting the Windows share on the Linux server. I type the mount command while I'm in Folder1 on the Linux server:

Code:

So far so good. Now I need to rsync and the command for this is

Code:

But what do I fill in here? I'm guessing path/to/dst is just plain Folder1 on the Linux box. Path/to/src refers to the share on the Windows machine but since I've mounted that share, is path to source = path to destination?

View 4 Replies View Related

Ubuntu Servers :: Rsync Windows Client Folder To Server

Mar 27, 2010

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.

View 4 Replies View Related

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:

[Code]....

This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Ubuntu :: Can't Rsync Gmail / Run Rsync --recursive --times --perms --links --delete?

Jan 7, 2011

When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/

where Documents/exclude.txt is

- /Downloads/
- /Desktop/books/

the files in those directories are still copied onto my USB.

And...

I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.

View 9 Replies View Related

General :: Windows - Make Rsync Case Insensitive

Mar 12, 2011

I'm rsync'ing a bunch of files between a Windows and a Linux system. Since not all Windows care about case, some of the files on the Windows system no longer have the same casing as they had on the Linux system. But rsync now treats these files as different and uploads a new copy.

Is it possible to have rsync ignore the case?

View 3 Replies View Related

Red Hat / Fedora :: Rsync Via Ssh To Windows Sbs 2003 Protocol Mismatch?

Feb 17, 2011

I am trying to backup my CentOS5.5 webserver to our local windows sbs 2003 server in the office. I have set up ssh and cwrsync on the windows server and have confirmed that the linux server can reach the windows server via the command: ssh RemoteUser{AT} It asks for a password and connects fine. However when I run this command to start the backup: rsync -avz -e ssh home/account/public_html/some/small/directory/ remote_user{AT}/cygdrive/c/backup/destination/directory/

I get this error after entering the password: protocol version mismatch -- is your shell clean? PS I had to use {AT} instead of the proper character as the forum thought I was posting a URL

View 9 Replies View Related

Server :: Rsync To Windows / File Permissions & Owners?

Feb 7, 2010

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?

View 2 Replies View Related

Server :: Rsync Execution - With Crontab - Have Given Full Path To Rsync Too

Apr 12, 2011

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.

View 6 Replies View Related

Software :: Run Rsync To Download Files From A Server Without Rsync Daemon?

Sep 18, 2009

I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.

I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?

The command I used is rsync --partial --progress -r source destination

View 1 Replies View Related

General :: Rsync On Windows To Make It Keep Special Characters In File-names

Sep 2, 2010

We're in the process of implementing an offsite backup of all our servers to a remote Linux server. We're using rsync over ssh.What I've found is that characters such as ±, ¶,´ and £ are replaced on the Linux server with underscores.I don't mind if it changes these characters in the filenames of documents, but when it renames a language pack from Espa±ol.clx to Espa_ol.clx, it could cause issues for us further down the line.

What do I need to do differently to make the special characters copy over correctly? For the initial sync which will take place locally, before the machine is moved offsite, I have SAMBA enabled. I am able to copy files from Windows to the Samba share, retaining the original filename, though it looks different in the Linux directory listing, i.e. t̻st becomes ĻstThese files get deleted by rsync when it runs, as it does not match the filenames.

View 1 Replies View Related

Networking :: Rsync-like Use Of Rdesktop For Continual Load Of Data Files Off Windows?

Jul 19, 2011

Windows computer continually generates images (AutoGrabnnn). All downstream analysis on linux computer. I need analog of rsync bringing files over as they arise. rdesktop seems to be the approach. Is this already described somewhere to bypass much trial-and-error?

View 2 Replies View Related

Server :: Rsync Can Not Rsync Files With Include Filter

Jul 21, 2010

use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.

rsync configure file,below...

View 2 Replies View Related

Server :: Rsync Fails In Cron - Ssh Key - For Rsync?

Dec 8, 2010

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.

Code:

Here is the cron entry:

Code:

View 6 Replies View Related

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.

View 3 Replies View Related

Software :: Rsync Some Data From A Windows Machine To A Machine?

Apr 8, 2010

So I am trying to learn a little about Cygwin and rsync. I'd like to rsync some data from a Windows machine to a Linux machine. I've got Cygwin installed but I can't figure out how to tell Cygwin were rsync will be pulling the data from; basically, how to set the directories that I want to be rsnyc'd. I've googled and googled but I can't seem to find the answer to this exact question.

View 4 Replies View Related

Ubuntu :: Headless Desktop Won't Load GUI

May 3, 2010

I have an Dell 755, and I have installed Ubuntu 10.4 desktop on it, everything works fine. I have it auto login, and run Azureus/Vuse at startup (so it can be a headless Bit Torrent server), it works perfectly. As soon as I try to go headless (no keyboard/mouse/monitor) the machine boots fine (I can SSH / FreeNX to the machine) but none of the GUI/apps load. What I think is happening is that when it boots without a monitor attached it does not load any of the X11 stuff. I need it to. It worked in Ubuntu 9.04 just fine, but now with 10.4 it is a no-go. Does anyone know how to force the X11/GUI to load when there are no monitors/hardware attached? This is the one thing standing in my was of getting Windows out of my house.

View 1 Replies View Related

Ubuntu :: Headless Server Without Monitor?

Jun 13, 2010

Well xubuntu wont boot without a monitor. I booted freenas without the monitor and plugged it back in and got a signal. So it isnt the bios.

View 3 Replies View Related

Ubuntu :: Headless VNC Won't Work Without Monitor?

Oct 1, 2010

I'm setting up a headless unit with Xubuntu (lucid), VirtualBox and Vino. It works fine except that when I unplug the monitor and reboot I can't connect via VNC. I can ssh in just fine. If I try to plug in a monitor to see the display I get no signal. My assumption is that Ubuntu detected no monitor and decided to ask me something or act differently.

View 3 Replies View Related

Ubuntu :: Headless Server Won't Let Me Execute Exe

Jan 22, 2011

I have now had an Ubuntu desktop server on a very crappy server (network filesystem with enourmus latency) for a year and as the subscription will soon run out I opted for a slightly better one, still crappy but at least a "complete server" (cpu+mem+HD).And a headless installation of Ubuntu Server 10.10 "Maverick Meerkat" instead of my Desktop version.I'm not using it for web pages or other 'ordinary' things though, I'm running my homemade MMORPG off of it and this new headless situation is a bit unclear to me.

I created an account and password with my root account, a folder with the username was created in /home/ and I uploaded my mmorpg executable there with an ftp client.I tried to change the whole folder (being root) to 777 but it didn't work either.

View 7 Replies View Related

Ubuntu :: Running Server Via USB On Headless

Aug 18, 2011

I have an HP MSS 487 (headless). I was going to update to WHS2011 but was thinking of trying Ubuntu Server first. My MSS has a USB slot, but I'm not sure how to start and run Ubuntu Server from that USB stick. I can use remote desktop to access the box. I'll also need to install something on my other pcs/macs so that I can get the backups working. I didn't see anything that is similar to the whs connector software (client). Would I need to install a full Ubuntu client to do the backups?

View 4 Replies View Related

Ubuntu :: Server Headless And Drive Partioning?

May 2, 2010

I have the latest download of Ubuntu Server 10.04 installed. I have not installed a gui for it. I would like to be able to do this from command line if possible. I will be running this server headless but I would like to be able to login remotely if necessary. My hunch is I will need a gui to be able to log in remotely?

I have three Internal drives in my server. 80GB, ext4 formatted, this has the server os loaded on it. The other two drives are 160 and 500GB formatted ext4 as well but they are empty. I have two Ext USB drives with all my stuff I don't want to lose. Both are formatted NTFS. So I need help but keep in mind I am going to run the server headless, but would like to login remotely if necessary without a gui.

My other home computers will dual boot windows or linux, so I need to know what is the safest and best way to format the two drives in my server. ex4 or ntfs? Will I be able to run server without a gui as headless? I just installed Samba4 and starting down the learning curve by googling how to set it up.
My file sharing is simple. Nothing special within the Lan, but want to keep hackers out from the outside world. I use Logmein on my windows computers and may want to setup a remote login for the server at some point. Right now my big this is setting up the drives, shares, and going headless. I would like to be able to just turn the thing on and not worry about it.

View 5 Replies View Related

Ubuntu :: Get CUPS Working On A Headless Server?

May 12, 2010

I've been trying to get CUPS working on a headless server, in order to share the printers connected to it with the rest of the network. The problem is that I can't add printers via the web interface, or rather, that I can log in, as it will not authorize my account. I've tried lppasswd, adding cupsys to the group 'shadow'(only to have the system tell me that there is no user called cupsys), and been editing the cupd.conf for hours. On top of all tha, I can't even get to the web-interface without running "/etc/init.d/cups restart"!

[Code]...

View 3 Replies View Related

Ubuntu Installation :: Install Vnc On Headless / Monitor Less 10.04?

Jul 13, 2010

how to install vnc on a headless/monitor-less Ubuntu 10.04 ?i googled A LOT i couldn't find a well explained guide. i am not sure if this is the right place to post the thread. if it is not move the thread.

View 9 Replies View Related

Ubuntu Multimedia :: MPD As Daemon On Headless Server?

Jul 22, 2010

i have been scratching my head and repeatedly banging it against a wall

i have a lan:
m0n0wall router
ubuntu server (headless/no mouse/kbd/speakers, etc in attic)
4 desktop pc's
1 dlink dsm 520

my server is exactly that it has mysql/apache/mediatomb/php/cacti/phpmyadmin/samba/nfs/mpd) ignore all other service running on server & focus on MPD. all 4 desktop pc can connect to mpd and they can see the library. BUT they cannot play any track as it states there was an error with the audio device!i have tried all the examples on the web and none work what do i do? how do i configure it to use the LOCAL soundcard NOT the one that is not present in my server? all the examples are set to use the LOCAL(one on machine running MPD) sound card which does not work until i connect a speaker to my server which again is located in my attic and only has a pc speaker so this is NOT what i want. all 4 desktops do not have mpd installed as they do not need it. all media is stored on my server the gui's that connect to mpd do not have any configuration for a sound card

View 2 Replies View Related

Ubuntu Servers :: Starting Several VMs On A Remote Headless Via Ssh

Nov 24, 2010

I'm starting several VMs on a remote headless ubuntu server via ssh using:

Code:
VBoxHeadless -s <vmname>

The VM starts up okay, and I'm left with an occupied command terminal on my local ubuntu machine. So, if I want to start up several VMs on the remote server, I have to open up several command terminals and end up with as many occupied terminals once they're all running. When the local terminal is closed, the remote VM is also shutdown.

Is there a better way to do this without the remote VM being dependent on the local terminal? I'd like to remotely startup the VMs and be able to close the local terminals without shutting down the VMs. I'm sure this must be possible, I just don't know how to do it.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved