Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Samba server

Posted on 2015-01-24
7
Medium Priority
?
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 6

Expert Comment

by:Shiju Jacob
ID: 40568173
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
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.
0
 

Author Comment

by:Sanjeev jha
ID: 40570309
I solved this problem.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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
0
 
LVL 6

Expert Comment

by:Shiju Jacob
ID: 40580569
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
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.
0
 

Author Closing Comment

by:Sanjeev jha
ID: 40735249
Thank you.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

609 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