Samba and SMBclient

Samba and SMBclient

Post by Franklin Ye » Thu, 08 Sep 2005 02:12:27



Is there a way to back up all files in a dilectory but without backing
up *.pst files using Samba/smbclient connecting to a Windows share?

Are there any Windows share backup packages running on Unix availbale as
open soulce?

Thank you.

 
 
 

Samba and SMBclient

Post by Alan Smit » Thu, 08 Sep 2005 07:32:44


Franklin Yee wrote the following on 06/09/2005 18:12:

Quote:> Is there a way to back up all files in a dilectory but without backing
> up *.pst files using Samba/smbclient connecting to a Windows share?

> Are there any Windows share backup packages running on Unix availbale as
> open soulce?

> Thank you.

You can mount the windows share by using '-t smbfs'

If you have more than one windows share to backup then you can use arrays to store the share names/mount points... e.g.

declare -a PCNAME
PCNAME=(
        PC01
        PC02
        PC03
        PC04
        etc...
        )

mount -t smbfs -o username=$USERID,password=$PWD //${PCNAME[$COUNT]}/c$ $MOUNTROOT/${PCNAME[$COUNT]}

Then you can use something like rsync to do the backing up. rsync will allow you to add/exclude files/directories.

HTH

Alan

 
 
 

Samba and SMBclient

Post by Franklin Ye » Thu, 08 Sep 2005 08:09:19



> Franklin Yee wrote the following on 06/09/2005 18:12:

>> Is there a way to back up all files in a dilectory but without backing
>> up *.pst files using Samba/smbclient connecting to a Windows share?

>> Are there any Windows share backup packages running on Unix availbale as
>> open soulce?

>> Thank you.

> You can mount the windows share by using '-t smbfs'
> If you have more than one windows share to backup then you can use
> arrays to store the share names/mount points... e.g.

Solaris 10 (sparc) mount does not take a -t smbfs option.
Is that only for Linux?

> declare -a PCNAME
> PCNAME=(
>        PC01
>        PC02
>        PC03
>        PC04
>        etc...
>        )

> mount -t smbfs -o username=$USERID,password=$PWD //${PCNAME[$COUNT]}/c$
> $MOUNTROOT/${PCNAME[$COUNT]}

> Then you can use something like rsync to do the backing up. rsync will
> allow you to add/exclude files/directories.

> HTH

> Alan

 
 
 

Samba and SMBclient

Post by Sun » Thu, 08 Sep 2005 10:08:46


yes, in solaris no support for smbfs, it will work only in Linux.

-SR

 
 
 

1. samba "smbclient -U% -L localhost" failed

Hi,

I am new to samba and Solaris environment. I just installed Samba on top of
Solaris 2.7 in SUNClassic box. I have following error
====================================
# ./smbclient -U% -L localhost
added interface ip=208.145.205.32 bcast=208.145.205.255 nmask=255.255.255.0
session request to LOCALHOST failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)
=====================================
Also I tried starting the smbd and nmbd but when I check if the daemons are
running, smbd does not seem to be running!! pls see below-

# /usr/local/samba/bin/smbd -D
# /usr/local/samba/bin/nmbd -D

# ps -ef|grep smbd
    root   449   446  1 17:26:08 pts/3    0:00 grep smbd
# ps -ef|grep nmbd
    root   255   130  0 17:03:59 ?        0:01 nmbd
    root   451   446  1 17:26:18 pts/3    0:00 grep nmbd

=====================
Any help would be highly appreciated.

Thanks in advance-
Kailash

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

2. command line args

3. Samba Server on R5...can't smbclient

4. Linux stocks

5. Samba: smbclient and directory delimiters

6. fetchmail diald

7. Samba: smbclient cannot execute?

8. Newbie question

9. Samba smbclient

10. Using Samba, smbclient works, but can't mount share via smbmount

11. smbclient can't work and Linux/Samba Driving Me Nuts

12. Samba smbmount/smbclient

13. Samba: smbclient command to use printer on NT?