Samba server

Posted on 2015-01-24
Medium Priority
Last Modified: 2015-04-21
Hi Sir: I have installed Red hat 6 in my system and installed 2TB HDD of two same capacity
hard disk, in one hard disk i have installed and mount a folder name 'data' and now I want what ever work of file save in this folder same replic should be in secondary hard disk however if data of primary deleted by any user no impact should be in secondary. I may able to recover deleted file from secondary. i need your help to configure backup part. Please help me to configure this. it would be great help.
Question by:Sanjeev jha
  • 5
  • 2

Expert Comment

by:Shiju Jacob
ID: 40568173

Try this command which will backup into the second destination

rsync -avzpr /source  /destination

and configure in cronjob

SHiju Jacob

Author Comment

by:Sanjeev jha
ID: 40570242
Hi Friend: created a new samba server  of 3 folder. when i loging through user then it shows user name by which i have logged in, and when i click on this icon able to enter inside which i did not want how it can be resticted.

Author Comment

by:Sanjeev jha
ID: 40570309
I solved this problem.
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!


Author Comment

by:Sanjeev jha
ID: 40580194
Hi SHiju Jacob: Thanks for your support. I would be great if you could tell me step to configure cronjob.
Scenario is this:

I have installed 2 hard disk of 2TB
In primary I have installed Red Hat 6 and configure Samba with 3 folder.
I want after 30 minutes secondary hard disk sinck and take backup of 3 folders.
If someone deleted some files in primary then in secondary it may not be deleted.
I mean once secondary hard disk taken backup of Primary in secondary it won,t deleted unless and until root login and delete it manually.

If you write the step for me, it would be great help for me. i hope you will response positively. waiting your reply and am new in Red hat.

Thanks in advance
Sanjeev jha

Expert Comment

by:Shiju Jacob
ID: 40580569
crontab -e

0,30 * * * * rsync -avzpr /source1  /destination2
0,35 * * * * rsync -avzpr /source2  /destination2
0,40 * * * * rsync -avzpr /source3  /destination3

and save and quit

Accepted Solution

Sanjeev jha earned 0 total points
ID: 40580575
Thanks Shiju: but now am facing a new issue
I have installed two hard disk of same capacity, in first i have installed red hat, and second i left as it is but now when i want to format and mount so that i can keep data of primary but unable to find and format it. Please help me for this also.
Thanks in advance for your cooperation.

Author Closing Comment

by:Sanjeev jha
ID: 40735249
Thank you.

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question