LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2013, 07:33 PM   #1
techux
Member
 
Registered: Mar 2013
Posts: 56

Rep: Reputation: Disabled
samba for backup etc


Hi guys.

I need to do some backups, for now only /etc/. I was thinking about maybe to use samba to share it, so our app can backup the files/folder in this share. of course the share will be read only. is this a bad idea to share /etc?

what others folder should I back up?

thanks
 
Old 05-04-2013, 07:41 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
what are you trying to accomplish? /etc really holds no vital information to DATA. it holds some system settings like your network settings and a few others, but nothing vital to a recovery.

why would you use samba to share /etc??? are you wanting to backup up files in /etc to a MS Windows computer? If that is the case create the share on the MS box and mount a cifs mount point. much simpler and more efficient. just use rsync to backup the data, but remember to look up in the man page for rsync howto tell rsync were to use for a /tmp as you will not be able to rsync directly to the cifs mount point in some cases. that all depends on the MS Windows box, but in 99.9% of the time you will have to tell rsync to use a local /tmp and not /path/to/foo/tmp during the transfer of files.

more importantly you should look to backing up DATA and any custom settings. your network settings, dhcp, dns, NFS shares via exports, etc... again really no need to backup the entire /etc directory.
 
Old 05-05-2013, 09:57 PM   #3
techux
Member
 
Registered: Mar 2013
Posts: 56

Original Poster
Rep: Reputation: Disabled
actually there is not so much data to back up...

later I can exclude what I dont need..


the issue I just found with samba is:

I created /mnt/backup and the idea is to copy (with rsync or cp) directories like /home , etc /root...

then access the share from windows but I cant access "root" folder because it only has permissions for root 700...and if there is any other folder/file with this permissions, probably I wont be able to copy it..
 
Old 05-06-2013, 12:05 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yes that is correct. one option you have is making /mnt/backup set to 755 or other crazy lack of security permissions, then as you are running as root run the chmod -Rf 755 /mnt/backup after you complete the rsync of cp.

mount /mnt/backup
rsync -aviS
chmod -Rf 755 /mnt/backup

should do the trick.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup samba share crash893 Linux - Software 5 04-01-2009 07:17 PM
Samba and XP Backup edanono Linux - Networking 1 12-30-2005 08:15 AM
Backup of Samba not working awangus Linux - Software 0 10-28-2004 08:08 PM
Samba backup technochef Linux - Networking 4 09-09-2004 06:49 PM
Can't backup from XP Pro to Samba CPUguy387 Linux - Networking 2 08-11-2004 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 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