The Arcive of vBulletin Modifications Site. |
|
SSH commands for copying folders? Details »»
|
|||||||||||||||||||||||||
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,? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Code:
cp -R /path/to/folder/foldername /path/to/backup/backupname Code:
tar cvf tarname.tar /path/to/folder |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
tar -zxvf backup.tar /path/to/folder
|
|
#5
|
|||
|
|||
|
Thanks Chris , what does the zxvf stand for?
|
|
#6
|
|||
|
|||
|
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. |
![]() |
|
|