Yummy Software
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 21, 2011, 05:57:01 AM
4198 Posts in 850 Topics by 1315 Members
Latest Member: shippingui97
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Problems & Bugs  |  How do I zip and unzip files on my server? « previous next »
Pages: [1] Print
Author Topic: How do I zip and unzip files on my server?  (Read 34 times)
deelight
Newbie
*
Posts: 3


How do I zip and unzip files on my server?
« on: February 19, 2011, 04:49:57 PM »

Hello JD and all!

I use YummyFTP with an older version for more than 5 years now and am always happy with the program. Cheesy Now I think about upgrading to 1.8.3 and downloaded the trial version because of itīs ability to create ZIP files on the server.

Now, how do I get ZIPs from my files? I have SoftShell access, use SFTP connection and then in YummyFTP go to the folder of the files I need to zip, activate maybe 10 files, click right, SoftShell-Commands, Create ZIP-Archive. Click.

No ZIP is created, I get the following message for each of the activated files:

.......
bash: line 0: cd: /downloads: No such file or directory
zip error: Nothing to do! (try: zip -rq P_0807_2.jpg.zip . -i P_0807_2.jpg)
.......

What do I have to do? Please notice: I am not a server geek, so please answer in easy words  Thanks!

Best regards, deelight

« Last Edit: February 19, 2011, 04:52:49 PM by deelight » Logged
JD
Administrator
FTP Guru
*****
Posts: 1892


Re: How do I zip and unzip files on my server?
« Reply #1 on: February 19, 2011, 05:57:32 PM »

I think you'll need to contact your server administrator to resolve this issue, but from what I can tell your login home directory in SFTP isn't the same as when you acces the server via shell (SoftShell). It is the latter which Yummy uses to send the zip commands to the server. So, when Yummy tells the server to look at a full path for the file to zip (/downloads in this case) the folder doesn't exist.

If you don't understand, don't worry - I'm sure the server administrator will know what I mean and how to rectify it so this will work.

Note that this is the exception - normally this feature 'just works' because the login home paths are the same.

I'm interested to know which old version of Yummy you were using? The zip feature has been there for the longest time! Smiley
Logged
deelight
Newbie
*
Posts: 3


Re: How do I zip and unzip files on my server?
« Reply #2 on: February 20, 2011, 05:41:12 AM »

Dear JD,

thanks for your reply. Well, I am on 1.1.5 and always have been happy with it, just checked and could not find the SoftShell commands on rightclick. Any other possibility? 

Regarding the problem - it's my server (provider managed) and I am the admin Shocked Sure, I am not a geek, but until now I could resolve all problems and with each new I am always learning...

I contacted the hotline of my server provider, they said I would need to run gzip or something similar and implement it as a file at the home directory of my server. Until now I do not know if this is correct and how to realize. Maybe also I did not understand 100% correct what they meant.

I also learned that server commands can be undertaken by the use of MAC Terminal, but in this particular case trying around without exactly knowing what one is doing might not be the perfect way to learn  Grin

So, if you have an idea what needs to be done to correct the path so that YummyFTP works please let me know.

Thanks & best regards!

deelight
« Last Edit: February 20, 2011, 05:42:58 AM by deelight » Logged
JD
Administrator
FTP Guru
*****
Posts: 1892


Re: How do I zip and unzip files on my server?
« Reply #3 on: February 20, 2011, 06:30:17 AM »

From what your provider is saying it sounds like you would need to install the zip program 'gzip' before you could create and expand zip archives. That normally comes as standard, but your provider should help you do that.

Once that hurdle is out of the way, the issue with zip files directly in Yummy is to do with SSH vs SFTP access to the server.

When Yummy is performing the zip function, it is actually not using SFTP to do this at all - behind the scenes it opens an SSH connection and issues the exact same commands that you would enter if you were using the Mac Terminal app.

And this is where the problem lies:

When connecting via SFTP the connected directory end up as (for example):

/users/yourname/sftp/home/

And when connecting via SSH it might be (again just an example):

/users/yourname/

So you can imagine that if there is a 'downloads' folder inside 'home', when Yummy connects via SSH there is no folder called 'downloads'

Now, if both home folders were the same on both SFTP and SSH then it would work.

Again, I don't know how to set both home folders the same for your server, but I expect your server provider will be able to tell you.
Logged
deelight
Newbie
*
Posts: 3


Re: How do I zip and unzip files on my server?
« Reply #4 on: February 20, 2011, 07:40:48 AM »

Alright, thanks, it seems that my provider is the one to speek to... Hotlines are not really my favourite partners when it comes to solving problems... Wink I will keep you updated what happens.

Thanks & best regards, deelight
Logged
Pages: [1] Print 
« previous next »
Jump to: