LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SMB/cifs not working with crontab (https://www.linuxquestions.org/questions/linux-newbie-8/smb-cifs-not-working-with-crontab-4175559745/)

shaana2khan 11-24-2015 05:18 AM

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.

berndbausch 11-24-2015 08:58 AM

Quote:

Originally Posted by shaana2khan (Post 5454463)
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 (Post 5454463)
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 (Post 5454463)
//192.168.0.*/backup /mnt /bin/tar -czf /mnt/*/Website_all_$($date).tar.gz /var/www/*/*

Quote:

Originally Posted by shaana2khan (Post 5454463)
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?

shaana2khan 12-30-2015 10:04 PM

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.


All times are GMT -5. The time now is 03:45 PM.