Making a directory a zip file

Hi @joon1, Why dont you just FTP directly to your other server?

I do.
FTP is more convenient than using USB.
But I think zipping a directory is more convenient than FTP.

FTP

ZIP

FTP has 2 steps but it needs that I have to work sitting in front of the old server at the first step.
Although zip has 4 steps, I can do all steps at the new server.
This is why I think zipping is more convenient than using FTP.

In my experience I believe PHP.
I believe there is a way to zip a directory in PHP.
If you say that there is no way to zip a directory in PHP, I will give up it.

Is there anyway to upload a directory of the old server sitting in front of the new server?
if it is possible, it will be fantastic.
In my experience I don’t believe it is possible.

No it doesn’t. You transfer the files and your done. You can do it from either server or any other server in the entire world. You dont have to be sitting in front of either of them and there is nothing to “download” once you transfer the files.

Yeah, FTP

Please confirm the following…

I get the general idea that the PHP files are only to be used/rendered either on your bedroom server or your living room server. The free web host server is only used as an intermediary step for transferring between the two home located servers.

The way I work…

I use my web host server to render the latest version of PHP source script which has been developed and modified on my local desktop.

I am curious to know brief details about your projects.

Edit:

I mentioned in a previous post that dragging and dropping folders using FileZilla is very easy. Have you tried try this feature? The source directory need not be visible in Filezilla and can be dragged from any file viewer application to the free web host directory.

If the PHP files render web pages then I would:

  1. upload PHP 5 files from the bedroom server archived projects to the free web host server
  2. render the free web host projects which should be PHP 7
  3. dowload projects from the free web host server to living room server
  4. modify and update projects locally
  5. upload modified projects and render on the free web host server
  6. rinse and repeat steps 4 and 5

Problems can now be posted with problematic source scripts and a link to the free web host server.

Hi @John_Betong, this is just not necessary. The “problem” here is simply, transfer files from Server A to Server B. This is the exact purpose of FTP as well as Rsync. Any other methods are just adding unnecessary complexity to a simple problem. Either method can be automated, so the OP doesn’t even have to manually do anything if he doesn’t want to.

I agree about “transfer files from Server A to Server B” and also guessing about the projects usage. Awaiting confirmation from a previous post.

Perhaps they are for IOT Projects that gather local data, if so I have similar projects that benefit from storing data to a web host database and graphically render results.

Since FileZilla is an FTP, can I upload a directory which is in my old server sitting in front of my new server using FileZilla?

Did you read post# 36…

and try:

I mentioned in a previous post that dragging and dropping folders using FileZilla is very easy. Have you tried try this feature? The source directory need not be visible in Filezilla and can be dragged from any file viewer application to the free web host directory.

If I do the above, Local site is shown on the left and remoteSite on the right.

I can see directories and files which are in the new server.
I can drag any directories or files in the new server to remoteSite.
but what I want is dragging directories or files in the old server.

How can I see directoires and files which are in the old server sitting in fron of my new server?

When you ftp from new server to old server, the old server will be the remote files. Drag from remote to local.

Install FileZilla onto your bedroom server, connect to the free web host, upload files and/or directories.

Edit:

It is like zipping files on the bedroom computer to a thumb drive.
Saving the thumb drive contents to the free web host then going to the living room server to download the files.

Fantastic!!!

How can I put my old server to remote server?

The following is one of my trial to put my old serer to remote server,

I failed because I don’t know the userName and password of old server.

When you are sat at the bedroom computer, use FileZilla to connect to the free online server.

When connected to the free online server your bedroom server files will be available to be uploaded.

I installed FileZilla onto my old server.
I can connect to the free web host sitting in front of the old server.
I can upload files and/or directories sitting in front of the old server.

What I want is:

Try this simple test:

  1. On your bedroom computer create a file called “created-on-bedroom-computer.php”
  2. Upload the file to the free web host.
  3. On your living room computer connect to the free online web host
  4. Download “created-on-bedroom-computer.php”
  5. Repeat steps 1…4 or try dragging a directory then download a directory

Yes, when I am sat at the old server, I can connect to the free online server.
But I want is that when I am sat at the new server, I like to see folders/files of the old server

The files should be visible using FileZilla. It will be necessary to change to the right directory,

It is essential to upload the files to the temporary free web host.

Now that the free web host is available, please go back and read from the start of this topic because a lot of what has been written will miss make more sense.

Please also answer the question about what the PHP files are used furniture.

I have already succeed this.
It is a better way than using USB.

But I want more.
I want uploading the folders/files in bedroom server sat at living room

The quote above is wrong because of my typo
The quote below is correct.

Sorry, I cannot help.

Please note that the bedroom server files are only uploaded once. Once uploaded the computer can be sold :slight_smile: