![]() |
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,? |
Code:
cp -R /path/to/folder/foldername /path/to/backup/backupname Code:
tar cvf tarname.tar /path/to/folder |
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 |
tar -zxvf backup.tar /path/to/folder
|
Thanks Chris , what does the zxvf stand for?
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|