0

I have a production server and a development server.

Problem is the development server only has 20GB diskspace and about 8GB available.

The folder of files I'm trying to move is 6GB(ish). I've tried to zip the folder and download it to the development server, except while extracting the disk space becomes full.

Is there any solution to move the folder without zipping to have it fit on the development server perfectly?

I know this can be done via FTP as I've done it from my computer, except I have only have command line access to both servers.

Any solutions?

1

2 Answers 2

1

Use SCP to copy the files.

Example to copy the directory "foo" from the local host to a remote host's directory "bar"

scp -r foo [email protected]:/some/remote/directory/bar

Ref: http://www.hypexr.org/linux_scp_help.php

2
  • which server do i run the command from? I want files on dev server, they're on the production server. I have a folder in dev /var/www/public/dev and I want the folder on production (/var/www/html/live) to go into the folder on dev. Aug 11, 2014 at 16:45
  • I would recommend to check the SCP help as it is very simple although you may need to pay attention to trailing "/" to get the correct structure. The SCP command works either way, as it is like "scp source target" command. Give it a couple of tests with small folders and see which way (copying from or to ) is more comfortable for you.
    – Marcelo
    Aug 11, 2014 at 16:48
1

SCP will work, but in most cases rsync is superior.

It will happily use SSH for transport just as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .