Closed Thread Icon

Topic awaiting preservation: Any Samba experts here?? Pages that link to <a href="https://ozoneasylum.com/backlink?for=24421" title="Pages that link to Topic awaiting preservation: Any Samba experts here??" rel="nofollow" >Topic awaiting preservation: Any Samba experts here??\

 
Author Thread
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-16-2004 19:58

I need some help on something

Here is what I have:

20gb hard drive with Linux slackware 10 running Samba for a fileserver. I am now going to install 2 other hard drive at 160gb each.

I don't want the users to actually be writting to the 20gb drive, just one of the 160gb drive and then with a cron job and a small script, everything be backed up to the other 160gb drive.

Is it possible in Samba to have users access symbolic links on one hard drive so that it will actually be written to another hard drive?

Hope this make sense because I confuse the hell out of myself.

Thanks in advance!

Later,

C:\

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 12-16-2004 20:54

I don't know if symbolic links can span partitions - hard links most definatly can not.

But why would you actually need to do that?

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-16-2004 21:14
quote:
Tyberius Prime said:

But why would you actually need to do that?



because my boss wants to make things harder than they really need to be. I just want to use the two 160gb drives. One with the OS and Samba, everyone can access their respective folder on it and have those folder backed up to the second 160gb drive.

He doesn't want to do that. Wants the OS on the small 20gb drive, users files actually saved onto the 160gb drive and then backed up to the 3rd 160gb drive.

I just don't think I am going to be able to do it like that.

Later,

C:\

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 12-16-2004 21:49

where is the problem -
I belived you could map your network drives straight to 160A, and unison (or copy, if you want to be lazy) this straight to 160B by your cron script.

Worst case scenario, if everyone get's access to a 'home' folder, you'll need to move their home directories over to 160A. usermod would do the trick here.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-16-2004 22:06

so you can map the 160gb drive even though Samba will be running on the smaller drive? The 160gb drives will not have any type of OS on it, just formatted.

Further reserch indicates that soft links of symbolic links *can* in fact span partitions.

So what I have now is everyone set up on the small 20gb drive with the samba shares.

i.e. :

/home/users/user1
/home/users/user2

etc....

now what I was going to do was to have a symbolic link inside each one of those folders called "Saves". Those "saves" folders will actually be symbolic links to one of the 160gb drives. Then with a cron job, all that data one the first 160gb drive will be backed up to the other 160gb drive.


I am almost positive that I can do it that way. It just seems that I am taking way too many steps to get it done.

Thanks for all the help so far.

Later,

C:\

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-16-2004 22:59

ok........imma idiot.

I now understand what you are saying.

Eveyone does have access to a home directory right now. I just don't want them to save live data in that folder. So, using "usermod" it looks like I can just move their home folders over to 160A like you said

just mount the drive and usermod -d looks like what i need. am i on the right track?

Later,

C:\

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 12-16-2004 23:25

Alright here's the basic Back movement

Right, Place. Step slightly back, on the 1st beat of the music. Toe first, slide your Right foot back and change weight onto the Right leg. Don't move your Left foot!

Left, Tap, Up-Down. Moving your left foot slightly back, tap on the inside ball of the foot. The up motion results from partially changing weight onto the left leg, by rolling onto the outside ball of the left foot (don't put your heel completely to the floor). The right leg will rise from the floor a little. The down motion occurs from changing weight back onto the right leg.

Then the Forward movement.

Left, Place. Step slightly forward, on the 1st beat of the music. Toe first, slide your Left foot Forward and change weight onto the Left leg. Don't move your Right foot!

Right, Tap, Up-Down. Moving your right foot slightly forward, tap on the inside ball of the foot. The up motion results from partially changing weight onto the right leg, by rolling onto the outside ball of the right foot (don't put your heel completely to the floor). The left leg will rise from the floor a little. The down motion occurs from changing weight back onto the Left leg.

lemme know if you have anymore questions



.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-17-2004 14:01

thanks bit........but i think i might stick with salsa instead

Later,

C:\

abb
Bipolar (III) Inmate

From: Victoria, BC
Insane since: Mar 2002

posted posted 12-19-2004 06:41

Couldn't you just have users' home directories on the one hard drive (i.e. mount the 160A drive as the /home directory)?

Then, copying the users' files to the 160B drive would be easy; just copy the /home directory to (say) /mnt/160B_backup.

You would need to have the two 160 drives mounted on boot so suitable entries in /etc/fstab would need to be added, for example:

code:
/dev/hdb1        /home                ext3        defaults         0   0
/dev/hdc1 /mnt/backup ext3 defaults 0 0



(Edited by abb on 12-19-2004 06:43)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 12-20-2004 04:44

abb:

yeah that is pretty much what i did. just took TP's advice and did it that way. I didn't realize that you could just move the directories over and Samba would connect to it just fine. And I did edit fstab to have both hard drives mount on boot.

Thanks for the help. I make thing WWWAAAYYY too difficult sometimes

Later,

C:\

eyezaer
Lunatic (VI) Mad Scientist

From: the Psychiatric Ward
Insane since: Sep 2000

posted posted 12-20-2004 09:31

hah bit! I ah clicked on this thread because I was wanting an explination... of the samba. Very good.

« BackwardsOnwards »

Show Forum Drop Down Menu