LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-11-2007, 04:21 PM   #1
elliotfuller
Member
 
Registered: Apr 2005
Location: San Francisco, CA
Distribution: Ubuntu, Debian
Posts: 83

Rep: Reputation: 15
Sharing Rsync'd Backup Mirror?


I have a network with a server and a backup server. I set them up to automatically rsync every night at 1:00 after everyone has left. This is great because if our server goes down we have backup. It also provides an extra layer of security in that, if I delete a file by accident during the day, or modify it by accident, I can retrieve last nights copy from the backup server. That is easy, of course for me, but not for everyone else who shouldn't know all the passwords to get in.

So I wanted to set up my Rsync backup server as a samba server as well. That way everyone will be able to reference a backup in case they screw up.

So I set my rsync to send the backup folder to the home directory of the backup server and shared it on samba. However, I don't want people modifying the backup server, so I set up a script to change the file permissions to read only after the copy. I also created a backup account that can be used to access the files, and did a chown script. I was getting errors when trying to access the share because root was doing the backup and owned the destination folder.

Big mistake. Now the backup server will no longer backup. I am pretty sure because I have modified the files in my destination directory with a chmod, and chown.

I feel stupid.

How can I achieve this task?
 
Old 03-11-2007, 04:49 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
So I wanted to set up my Rsync backup server as a samba server as well. That way everyone will be able to reference a backup in case they screw up.
I think you're banging your head against a wall if you expect users to dig their way out of the hole they made.

We just make reliable backups. Then when a user calls for that folder or file they deleted, we go get it and put a copy where they can find it. I sure wouldn't let those users anywhere near the backup server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM
Looking for simple backup/mirror solution agentchange Linux - Software 5 10-31-2006 12:52 AM
FC5 / Ubuntu home directory sharing without sharing session information cdhgee Fedora 1 07-26-2006 05:47 PM
LXer: Accessing Network attached storage from Linux system for file sharing and backup purpose LXer Syndicated Linux News 0 05-20-2006 02:03 AM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration