LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2011, 04:30 AM   #1
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Rep: Reputation: 0
Help with final settings for my server


Hi all,

I've just got a few questions about the last steps of my backup server.

I've got ubuntu server 10.10
The 2 machines I want to backup are a xp desktop and win7 laptop.
All connected via router.

I have sshd, samba server and rsync packages installed on the server.

I don't want all 3 mirrored so should each comp have it's own partition on the server or could it be setup as /media/desktop and /media/laptop?

Currently the server firewall is setup with ufw as deny all incoming allow all outgoing.
I want to use ssh with rsync and samba so do I only need to leave port 22 open and allow a max of 2 connections at at time as fire wall rules?

Also what do I need to do with permissions on windows? Do I just enable sharing on the files I want backed up? Can I only allow sharing with the server and no other computers?

Last question for now I think, I will be backing up from the server as local and the windows machines as remote, what software do I need to install on the windows machines to allow backing up with rsync and file sharing with samba.

Thanks for any help/feedback.
 
Old 02-17-2011, 04:27 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Generally using Samba on windows make backup via rsync much easier. With samba you can mount the remote file system into a local path and then simply rsync like it was a local directory. If the hosts are on the same local LAN, this is the way I would go. Yes, you simply tell Windows to share the directory. You will need to give it write permissions from a user that will be performing the operation. This the user that will be performing the mount. What the error logs from rsync very carefully. Windows doesn't support permissions like Linux and this can cause warnings.

If the hosts are across a public network, or one where you are concerned about prying eyes on your data, you can tunnel an rsync connection over SSH. The recommened way I have seen to do this is to use cwrsync on the Windows side, which is an adaptation of Cygwin. If you only need the windows machines SSH clients, you may be able to do this with putty. In this instance, I would look for some of the many how-to documents on rsync with ssh. Personally, I tried getting this to work between a Linux and Windows system and gave up and went the Samba approach.

You might also be able to use SSH to create a VPN tunnel and mount the samba volume over that. I have never tried it, but it should work. There is lots of documentation on VPN with SSH, which is where I would start.

Last edited by Noway2; 02-17-2011 at 04:28 AM. Reason: added part about permissions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP Settings for Qmail Server - I suspect Open Relay on our server causing rejection CCTVGuru Linux - Newbie 5 01-18-2010 12:21 PM
LXer: AntiX spin on Mepis in 'pre-final' stage, should be 'final' in early July LXer Syndicated Linux News 0 06-28-2007 10:31 PM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
LXer: MS vs. EC: Final Q& A and final pleadings LXer Syndicated Linux News 0 04-30-2006 03:54 AM
final touches of game server banelion Slackware 6 06-27-2002 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration