Solved

Samba server

Posted on 2015-01-24
7
128 Views
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.
0
Comment
Question by:Sanjeev jha
  • 5
  • 2
7 Comments
 
LVL 6

Expert Comment

by:Shiju Jacob
Comment Utility
Hey

Try this command which will backup into the second destination

rsync -avzpr /source  /destination

and configure in cronjob

thanks
SHiju Jacob
0
 

Author Comment

by:Sanjeev jha
Comment Utility
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
 

Author Comment

by:Sanjeev jha
Comment Utility
I solved this problem.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:Sanjeev jha
Comment Utility
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
 
LVL 6

Expert Comment

by:Shiju Jacob
Comment Utility
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
 

Accepted Solution

by:
Sanjeev jha earned 0 total points
Comment Utility
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
 

Author Closing Comment

by:Sanjeev jha
Comment Utility
Thank you.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now