vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Help me with a tiny SSH command :( (https://vborg.vbsupport.ru/showthread.php?t=45116)

N9ne 10-28-2002 03:21 PM

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?

JulianD 10-28-2002 05:32 PM

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').

nsr81 10-28-2002 07:43 PM

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

Now on server B:
Code:

wget http://serverA/avatars.tar
tar -xpf avatars.tar

You'll have "avatars" directory in the same place where you transfered avatars.tar.

hope that helps.

N9ne 10-28-2002 08:34 PM

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?

NTLDR 10-28-2002 09:16 PM

tar -xf will untar the files for you ;)


All times are GMT. The time now is 12:31 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
  • Page Generation 0.00951 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete