![]() |
Help me with a tiny SSH command :(
I'm trying to quickly transfer 531 avatars from one site to another, via SSH. I navigate to the avatar dir and then ftp into the place I want to put them...and navigate to the folder I want them in...now I can transfer one by one but that would require me sitting here for endless hours typing in filename after filename! Isn't there a command to transfer an entire folder or, all the files in one go?
|
Uhmm.. You can compress the whole directory with the avatars and transfer the big file from one server to another... then, uncompress it.
You can also try the command 'wget'. It's available on almost all the servers and it can transfer a whole directory to another server, via HTTP or FTP. Take a look to the argument '--recursive' (try 'wget --help'). |
If you have SSH access to both servers you can perform the compress decompress procedure JulianaD suggested.
If avatars are in /dir/avatars on server A, Code:
cd /dir You'll have "avatars" directory in the same place where you transfered avatars.tar. hope that helps. |
when I did tar -xpf avatar.tar [I have it as avatar.tar] it quickly did whatever and the next line came up as bash-2.05a$ straight away...I have avatar.tar under my webroot on server B now, but how can I un-tar this and put the files where I want to put them?
|
tar -xf will untar the files for you ;)
|
All times are GMT. The time now is 01:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|