LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2006, 04:55 AM   #1
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
Smile copying a dot directory


I am trying to copy a dot directory (.wine) from the users home directopry to some other directory.
When I am trying to send this dot directory to my friends system using scp, it does not even work.It sends all the dot files in the system
if i want to send only .wine folder, not all, what should i do?
 
Old 02-24-2006, 05:00 AM   #2
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
um

cp -rf "$HOME/.wine" /someplace?
 
Old 02-24-2006, 06:27 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please read the manpage for scp and coreutils.
scp -r /home/username/.wine username2@targethost

Thinking there may have been a suprise in store, I tried it successfully using a sample hidden dir with several files in it.

You didn't include the command you tried, or the response that you got. Try to give more information when you post please.
 
Old 02-24-2006, 07:48 AM   #4
dussel
Member
 
Registered: Dec 2004
Distribution: SuSE 9.X, SuSE 10, SLES 9,RedHat, Feodora Gentoo, Solaris, and more
Posts: 50

Rep: Reputation: 15
I don't know if it is a solution for you, but I would say that it is better to make tar file of your directory and after that send it by scp.

I have experince problems to send a directory with scp.

Cheers

Dussel
 
Old 02-24-2006, 11:44 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you read the manpage, it looks like scp requires the name@host: for each file sent, so pulling files using a wildcard wouldn't work. I did test scp on a sample hidden directory that itself contained hidden and unhidden files, and a subdirectory. But, using tar would be a better idea. I think that it may even be possible to have tar running on both machines for that, which may be used to transfer large directories, however using 'slice' and par2 to add redundancy, may be a better idea. One example would be if the target filesystem can't handle filesizes above 2GB, such as fat32 or early ext2 filesystems. The partition size can be over 2GB, but a single file can't.
 
Old 02-27-2006, 11:29 PM   #6
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Its really not possible to send a dot directory.
All the user's dot tings are also transferred unneccessarily.
I tried to tar . But still, its going around 600MB . But my .wine directoy is 4.3 MB only.
Any suggestions?
 
Old 02-28-2006, 02:14 AM   #7
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by sailu_mvn
Its really not possible to send a dot directory.
All the user's dot tings are also transferred unneccessarily.
I tried to tar . But still, its going around 600MB . But my .wine directoy is 4.3 MB only.
Any suggestions?
Did you read the responses above?

What command are you using?

Can you post what happens when you do
Code:
scp -r .wine user@host:
 
Old 02-28-2006, 03:03 AM   #8
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440

Original Poster
Blog Entries: 1

Rep: Reputation: 30
WHat Happens?
It takes 3 hours to transfer 4.3MB file.
And It transfers all the dot directories.
No errors , nothing
 
  


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
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
Copying a file into a directory Nizhni Linux - Newbie 3 01-24-2005 12:47 AM
Copying etc directory njschroe SUSE / openSUSE 6 12-15-2004 01:45 AM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM
copying a CD to a directory MrGardenHoseMan Linux - General 2 07-03-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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