Jump to content

Recommended Posts

Posted

Periodically I need to upload several hundred files in a complicated hierarchy.

 

For whatever reason, my FTP connection is not reliable. It's guaranteed to fail if I point to the root of the hierarchy and say "upload this".

 

I can put all the files into an archive, say foo.tar. Then I can upload that and run a little php script to untar it.

 

That works great, except that the php script runs as "nobody", so all of the untar'd files end up being owned by "nobody", not by my normal ftp account.

 

I figure this must be a common problem.

 

What's the solution? How do I upload an archive, unpack it, and have the files be owned by my FTP account?

 

Thanks much,

--Rik

Posted

I put files in a Zip archive all the time and extract them on the server using the File Manager in cPanel. And I remain the owner of the files once extracted so I am not sure why you are seeing this behavior.

 

Have you tried a Zip archive?

Posted

Yep, File Manager is the solution.

 

I had played with File Manager before I posted my question, but apparently I never clicked the right places to see the Extract File Contents option. Knowing that File Manager was the right direction, I looked harder, and now of course it's completely obvious.

 

In a quick test, File Manager handled my .tar and .gz files just fine.

 

Thanks for the help!

 

--Rik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...