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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-24-2006, 04:55 AM
|
#1
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Rep:
|
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?
|
|
|
02-24-2006, 05:00 AM
|
#2
|
Member
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Rep:
|
um
cp -rf "$HOME/.wine" /someplace?
|
|
|
02-24-2006, 06:27 AM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
02-24-2006, 07:48 AM
|
#4
|
Member
Registered: Dec 2004
Distribution: SuSE 9.X, SuSE 10, SLES 9,RedHat, Feodora Gentoo, Solaris, and more
Posts: 50
Rep:
|
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
|
|
|
02-24-2006, 11:44 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
02-27-2006, 11:29 PM
|
#6
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Original Poster
Rep:
|
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?
|
|
|
02-28-2006, 02:14 AM
|
#7
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
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:
|
|
|
02-28-2006, 03:03 AM
|
#8
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Original Poster
Rep:
|
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 06:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|