vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   SSH commands for copying folders? (https://vborg.vbsupport.ru/showthread.php?t=129300)

bashy 10-17-2006 08:37 AM

SSH commands for copying folders?
 
Hi peeps

What are the SSH Commands from copying a folder on the ftp to another folder on the FTP

Basically i want to backup my forum folder and keep the backup on the ftp for now,?

Ntfu2 10-18-2006 01:43 AM

Code:

cp -R /path/to/folder/foldername /path/to/backup/backupname
If you are trying to backup, you may want to tar it up first

Code:

tar cvf tarname.tar /path/to/folder
then it'll be easier to move around and find later on.

bashy 10-18-2006 04:10 AM

Nice one m8 thanks very much!!

Could i please ask, whats the command to un tar the file and put it back...

e.g. unzip backup of /forums to /forums please?

Must admit, i so wish i had thought about doing it this way before, this is so much easier
than ftping all the files down and backup up when moving and so on.

I always assumed SSH was too cmplicated, but once ya know the commands its easy ::)

Thanks again

Guest210212002 10-18-2006 03:53 PM

tar -zxvf backup.tar /path/to/folder

bashy 10-18-2006 04:27 PM

Thanks Chris , what does the zxvf stand for?

Ntfu2 10-18-2006 04:36 PM

This list will help you bashy to learn some SSH commands and what they do

http://www.iteligent.com/kb/unix.txt

z - cant remember but its sorta like to make sure it will extract .tar and .tar.gz files i think.
x - extract/restore
v - verbose (puts out file names for each file in file)
f - file. Use the tarfile argument as the name of the tarfile.


All times are GMT. The time now is 07:50 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.01969 seconds
  • Memory Usage 1,717KB
  • 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
  • (6)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