LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   copying a dot directory (https://www.linuxquestions.org/questions/linux-software-2/copying-a-dot-directory-419022/)

sailu_mvn 02-24-2006 04:55 AM

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?

slantoflight 02-24-2006 05:00 AM

um

cp -rf "$HOME/.wine" /someplace?

jschiwal 02-24-2006 06:27 AM

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.

dussel 02-24-2006 07:48 AM

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

jschiwal 02-24-2006 11:44 PM

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.

sailu_mvn 02-27-2006 11:29 PM

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?

spooon 02-28-2006 02:14 AM

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:

sailu_mvn 02-28-2006 03:03 AM

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


All times are GMT -5. The time now is 03:08 AM.