Samba server

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.
Sanjeev jhaAsked:
Who is Participating?
 
Sanjeev jhaConnect With a Mentor Author Commented:
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.
0
 
Shiju JacobInfo SecurityCommented:
Hey

Try this command which will backup into the second destination

rsync -avzpr /source  /destination

and configure in cronjob

thanks
SHiju Jacob
0
 
Sanjeev jhaAuthor Commented:
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.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
Sanjeev jhaAuthor Commented:
I solved this problem.
0
 
Sanjeev jhaAuthor Commented:
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
0
 
Shiju JacobInfo SecurityCommented:
try
crontab -e

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


and save and quit
0
 
Sanjeev jhaAuthor Commented:
Thank you.
0
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.

All Courses

From novice to tech pro — start learning today.