LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-28-2005, 12:04 AM   #1
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
smbclient copy problem (cant stat file...)


I try to use smbclient to copy entire directory but i encounter error and got the message as fellow:

file_find: cannot stat file ./cguy/.kde/tmp-www.xxx.com.au

I go to look up that file i found that they are socket file , and when i do ls -l
it got 'l' as file type. Can anyone help me with this? I want to copy every file onto my backup client server(a win file share svr).

------------------------------------------------------------------------------
ps: the sbmclient command i used is
smbclient //file-share/backups -A /root/samba_credentials -c "prompt;recurse;lcd /home;cd home;mput *;exit"
------------------------------------------------------------------------------


Thanks in advance
 
Old 07-29-2005, 10:33 AM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
I suppose you can't copy certain type of file of a samba drive (as the filesystem just don't support socket/node/device/etc type of files that UNIX use), but this is just a guess.

You better mount the samba drive (why are you using smbclient anyways?) and then use "tar" with the samba mounted drive as a destination. This will be easier and will you will be able to backup every type of file (plus, you could zip or bunzip2 the files, saving some space).
 
Old 07-31-2005, 05:24 PM   #3
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
my kernel is kinda old 2.4.20-28.7 (red hat) and it wont' support file transfer bingger then 2G with mount. But somehow smbclient alow me to do so. Thats' why i try to work out a way to copy everything using smbclient.
 
Old 08-01-2005, 12:03 AM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
tar will do this.

Mount the remote drive, then use tar to copy the LOCAL directory you want to backup but as DESTINATION choose the mounted drive. Tar doesn't send 1 big file, it will slowly add hundred of small files to the remote archive, you won't exceed the "2gb" limit.
 
Old 08-01-2005, 01:20 AM   #5
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
well , tar method dont' seem to work. I still get the exceed limit thing and stop....

i use:

mount -t smbfs -o credentials=/root/samba_credentials //file-share/backups /opt/fullbackup

Then i went into opt/fullbackup directory and do :

tar -cvf backup.tar /home


after about 30 min, i got the exceed limit message and process stop... Do i tar it the wrong way?

Last edited by taiwf; 08-01-2005 at 01:24 AM.
 
Old 08-01-2005, 06:51 AM   #6
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
eeeh this is very strange, I wasn't aware of a size limite in tar, I use this myself to do backup of my drive and it does huge back up (~20Gb) as well without problem.... what's your tar version ( tar --version) and samba version?
Can you show me the error message?
 
Old 08-01-2005, 05:27 PM   #7
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
tar (GNU tar) 1.13.25

and then i upgrade it to 1.15 from ftp://mirror.aarnet.edu.au/pub/gnu/tar/

Which didn't give any different result. I think when u write a tar file, its probably the same thing as u write a single large file....Can't think of the difference between (both ordinary file and tar file are going to be written chunk by chunk over the network ...)


Last edited by taiwf; 08-02-2005 at 12:23 AM.
 
  


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
/proc/stat file problem for cpu usage arunka Programming 3 04-23-2014 01:08 PM
Smbclient copy from Linux to windows depam Linux - Software 4 01-02-2010 04:01 PM
Copy file problem DanielTan Linux - General 17 09-25-2005 05:22 AM
/usr/bin/stat not present. Can I just copy the file mystique98ls Linux - Newbie 2 01-06-2005 02:02 PM
Copy Files using smbclient Lilupa Linux - General 2 10-21-2004 12:14 AM


All times are GMT -5. The time now is 01:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration