LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2015, 05:18 AM   #1
shaana2khan
Member
 
Registered: Nov 2012
Posts: 46

Rep: Reputation: Disabled
SMB/cifs not working with crontab


Hi all.

I would like to ask you one important question. that I've install smb with cifs for backup purpose. and along with cifs I'm trying to send server backup from one serve to another server we've already mounted a drive on storage server Please see the below given E.g.

Samba install properly and share one folder <imp>
after that mount -t cifs //servername/folder /mnt -o username=username,password=password,

Than setup a crondtab so that whatever i can setup automatic back from on server to second server.
//192.168.0.*/backup /mnt /bin/tar -czf /mnt/*/Website_all_$($date).tar.gz /var/www/*/*

Same thing working on another server perfectly but that server is running under centos 5.6 and problematic server is running under centos 6.2.

Please suggest me ..I'm working on it from last one week and still waiting for my win.
 
Old 11-24-2015, 08:58 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,464

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Quote:
Originally Posted by shaana2khan View Post
mount -t cifs //servername/folder /mnt -o username=username,password=password
I understand that you are trying to do a backup to a CIFS share.

Quote:
Originally Posted by shaana2khan View Post
Than setup a crondtab so that whatever i can setup automatic back from on server to second server.
Can you tell us what's in the crontab?
Also, what is this line supposed to mean:
Quote:
Originally Posted by shaana2khan View Post
//192.168.0.*/backup /mnt /bin/tar -czf /mnt/*/Website_all_$($date).tar.gz /var/www/*/*
Quote:
Originally Posted by shaana2khan View Post
Same thing working on another server perfectly but that server is running under centos 5.6 and problematic server is running under centos 6.2.
What doesn't work?
What are the symptoms (for example, error messages)?
Why do you use CIFS and not a Linux-native filesystem like NFS?

Last edited by berndbausch; 11-24-2015 at 09:00 AM.
 
Old 12-30-2015, 10:04 PM   #3
shaana2khan
Member
 
Registered: Nov 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Sorry My concern have been sorted And there was some issue with the B server where I was trying to send the data through cifs.

Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CIFS/SMB mounting error. pwjohnston Linux - Newbie 3 05-05-2012 06:09 PM
SMB/Samba not working with CIFS. posix_memalign Linux - Software 3 01-14-2009 01:29 PM
amarok + cifs/smb = no seek ? Molly Linux - Software 5 04-09-2008 12:32 AM
Which ports for FreeNAS and CIFS/SMB TSloth Linux - Networking 1 02-22-2007 06:42 PM
mounting SMB/CIFS shares from FreeBSD scott2004 *BSD 2 10-21-2006 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration