The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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?
|
#2
|
||||
|
||||
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'). |
#3
|
|||
|
|||
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 tar -cpf avatars.tar avatars Code:
wget http://serverA/avatars.tar tar -xpf avatars.tar hope that helps. |
#4
|
|||
|
|||
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?
|
#5
|
||||
|
||||
tar -xf will untar the files for you
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|