Solved

Samba server

Posted on 2015-01-24
7
129 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
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 42
Can I delete authorized_keys in FreeBSD 1 76
What are recommended OS for exim mail server? 10 100
Python Assistance 7 72
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
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…
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.

914 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

13 Experts available now in Live!

Get 1:1 Help Now