LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-29-2005, 09:49 PM   #1
phillik747
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Rep: Reputation: 15
Question "Poor mans" Mirra


Hello all, Well I'm starting to get to that point where I know just enough to be dangerous around linux. I'm really intrested in the new Mirra personal file servers that you can buy and I know there is a way to make your own. My question is does anybody know of a good tutorial for setting up a "poor mans" Mirra server. I have an old computer sitting around that I would love to make into one.

Thank you for taking the time to read my post.

Kyle
____________________________________
FC4 x86_64
AMD 64 3000+ O.C.
1 GB ram
MSI nForce3 Ultra
6800 GT
 
Old 06-30-2005, 01:58 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I guess it depends on what you need from the server...

For a simple file server, samba is an easy, cross-platform way to go (so long as you follow the instructions and do a bit of reading). If you're 100% unix systems, you could use NFS instead, which I'm told is better (no experience with it myself, it's on the list for another time).

From the website, it looks like Mirra's main claim to fame though is its backup facility - they have their special client software that mirrors everything you save on the server. This would be hard to get right with free tools (I think) You could write your own client software that monitors disk accesses and only copies those files, or you could just do what I do, and put everything on your file server (map a drive in windows and make it your "my documents" folder).

If you want to synchronise files between multiple machines, then the best "poor man with some effort" option might be cvs or svn - at least for text-based files, as you can make changes on different machines without being up-to-date and merge the results (and occasionally fix conflicts). I really like having my home directory in cvs, even for binary files, but I don't normally need to make major changes from multiple locations.

If you describe exactly what you want and how you want it to work, there might be some more specific ideas coming out.
 
Old 09-11-2005, 04:19 PM   #3
phillik747
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Original Poster
Rep: Reputation: 15
What I'm really trying to do is a "set it and forget it" backup server. I would like to setup a crontab script that will backup my wife's windows laptop to a linux server running fc4 located on the same LAN. I don't know if I could accomplish this by doing the following:

mount -t smbfs //laptop/mydocuments /mountbackup
rsync -av /mountbackup /fullbackup

I gave it a shot and I get a lot of "operation not permitted" so I don't know if I'm missing a step or what. If you have a better idea please post back.
 
Old 09-11-2005, 05:25 PM   #4
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
rsync needs a server to talk to, either an rsyncd service, or a remote shell like rsh or ssh.

This link has some info on using a Win32 PC as an rsyncd server, but the info is designed to make use of the author's backup service (effectively, he runs the rsync command at his end). Use his instructions to set up your wife's laptop, and then do some testing to sort out the server side. Once you have it working, you should be able to schedule it through cron without a problem.
 
Old 09-11-2005, 09:32 PM   #5
phillik747
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you CroMagnon for the quick reply. I'll check it out!
 
Old 09-11-2005, 09:47 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
If I'd read what you wrote properly, I would have realised that you're trying to use a mounted share on the linux machine... in that case you could probably use the rsync command if rsyncd was running on the server.

I personally like the Win32 rsyncd idea better, because you don't need to worry about mounting a share in your script (which can be a bit frustrating for any user that isn't root), but you might prefer that method. Either way, good luck!
 
Old 09-13-2005, 06:50 PM   #7
phillik747
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Original Poster
Rep: Reputation: 15
YES!! got it to work but I have a few questions, maybe you could help me out.
When the xfer was taking place by using the command:

Code:
rsync -avzt username@192.168.1.5::documents
I got a lot of errors with rsync associated with chmod.

Code:
rsync: chown "/mnt/e/kelli/My eBooks" failed: Operation not permitted (1)
rsync: chown "/mnt/e/kelli/PARENTS" failed: Operation not permitted (1)
rsync: chown "/mnt/e/kelli/PARENTS/WRITE" failed: Operation not permitted (1)
rsync: chown "/mnt/e/kelli/PcSetup" failed: Operation not permitted (1)
rsync: chown "/mnt/e/kelli/Quicken" failed: Operation not permitted (1)
I don't know if there is a way to stop rsync from trying to chmod.
Also after I put in the rsync command I have to put in a password, which is fine but when I am going to set it up in the cron I need to have a way to bypass or put it in for me.

As for the setup up of it all it was pretty much straight forward. I just installed cygwin on my wifes laptop as the howto specified and ran rsync on my backup pc. There was one problem I ran into, rsync kept failing saying "access denied by unknown (192.168.1.1)" which is the ip of my router. Turns out rsync hates to connect via my wireless router to my wifes wireless laptop. So I had to hardwire her laptop to the router and it worked like a charm.

Now I just have to figure out how to setup a server to power up and running with just hitting the power button, like a mirra server.

Last edited by phillik747; 09-13-2005 at 10:20 PM.
 
Old 09-13-2005, 08:47 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
The prob with 'chown' is the -a flag :

-a, --archive archive mode, equivalent to -rlptgoD

from the man pages. Note that -go means preserve group, owner attributes. If you've designated a private area for the backups, these flags would be uneccessary. Also, MS (i assume on laptop) won't have Linux style ownerships or perms (-p).
I suggest you drop the -a flag altogether, possibly specifying other flags as needed.
 
Old 09-13-2005, 09:10 PM   #9
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 257

Rep: Reputation: 36
Quote:
Originally posted by phillik747
[
Now I just have to figure out how to setup a server to power up and running with just hitting the power button, like a mirra server. [/B]

Very easy to do that. Once you have everything on the server working the way you want it, you should be
able to just power up. You'll simply need to ensure that the appropriate services are started on boot.
 
Old 09-16-2005, 07:38 PM   #10
phillik747
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you all for your help.

Kyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Poor 3d performance with ATI Radeon 7500LE desipte "Direct rendering enabled" tallman Linux - Hardware 5 06-17-2004 12:31 AM
Knoppix - "poor man's"/98se ...dualboot? (same hd) OceanDead Linux - Newbie 5 05-01-2004 03:42 PM


All times are GMT -5. The time now is 11:40 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration