Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat Req: ZIP/TAR via SSH #2376

Closed
cyberduck opened this issue Aug 3, 2008 · 10 comments
Closed

Feat Req: ZIP/TAR via SSH #2376

cyberduck opened this issue Aug 3, 2008 · 10 comments
Assignees
Labels
enhancement fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

3c75a82 created the issue

It would be really great if you could add a feature to compress or decompress a remote file when we are connected via SSH. This would be so very helpful!!! Ideally ZIP, but tar would do. This could either be a right-click command, and/or an action menu item.

@cyberduck
Copy link
Collaborator Author

anonymous commented

would be great!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

We will try to push this into 3.1. Will only work for SSH connections.

@cyberduck
Copy link
Collaborator Author

3c75a82 commented

Replying to [comment:3 dkocher]:

We will try to push this into 3.1. Will only work for SSH connections.

AWESOME!
This will be a VERY helpful feature.
Thank you! Thank you! Thank you! Thank you!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In ec64c68. Available configuration options:

  • For archiving. For {0} the absolute path is given.
defaults write ch.sudo.cyberduck archive.command -string "tar -czpPfv {0}.tar.gz {0}"
  • For unarchiving. {0} is the absolute path to unarchive, {1} is the destination directory
defaults write ch.sudo.cyberduck unarchive.command.zip -string "unzip {0} -d {1}"
defaults write ch.sudo.cyberduck unarchive.command.tar -string "tar -xvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck unarchive.command.tgz -string "tar -xzvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck unarchive.command.tar.gz -string "tar -xzvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck unarchive.command.tar.bz2 -string "tar -xjvpPf {0} -C {1}"

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fixed default archive command in 60b9ccc.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Please consider the above commands as deprecated. They have been replaced in the final implementation with

defaults write ch.sudo.cyberduck archive.command.create.tar -string "tar -cvpPf {0}.tar {0}"
defaults write ch.sudo.cyberduck archive.command.create.tar.gz -string "tar -czvpPf {0}.tar.gz {0}"
defaults write ch.sudo.cyberduck archive.command.create.tar.bz2 -string "tar -cjvpPf {0}.tar.bz2 {0}"
defaults write ch.sudo.cyberduck archive.command.create.zip -string "zip -rv {0}.zip {0}"

defaults write ch.sudo.cyberduck archive.command.expand.tar -string "tar -xvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck archive.command.expand.tar.gz -string "tar -xzvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck archive.command.expand.tar.bz2 -string "tar -xjvpPf {0} -C {1}"
defaults write ch.sudo.cyberduck archive.command.expand.zip -string "unzip -n {0} -d {1}"

The default archiver command is set using

defaults write ch.sudo.cyberduck archive.default -string "tar.gz"

@cyberduck
Copy link
Collaborator Author

anonymous commented

Would it be possible also to add regular .gz files?
It would be convenient for mysql slow query logs.
Thanks :-)

@cyberduck
Copy link
Collaborator Author

3c75a82 commented

Filenames & Pathnames which contain a space are a problem, and prevent this awesome feature from creating archives. as of Version 3.1.1 (4457). Spaces will need to be encoded, or otherwise dealt with. Thanks very much!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:9 macmedix@…]:

Filenames & Pathnames which contain a space are a problem, and prevent this awesome feature from creating archives. as of Version 3.1.1 (4457). Spaces will need to be encoded, or otherwise dealt with. Thanks very much!

That should be fixed in the nightly build. Refer to #2884.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Documentation in Create and expand ZIP/TAR Archives.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants