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

Skip files matching regular expressions #8957

Open
cyberduck opened this issue Jul 29, 2015 · 7 comments
Open

Skip files matching regular expressions #8957

cyberduck opened this issue Jul 29, 2015 · 7 comments
Labels

Comments

@cyberduck
Copy link
Collaborator

b079f10 created the issue

Hello
Currently the only options for synchronize are mirror, download and upload as described in https://trac.cyberduck.io/wiki/help/en/howto/sync

  1. can you please add an enhancement that will allow the synchronize to delete remote files if they do not exist anymore in the source ? something like "robocopy /purge" or "winscp synchronize remote -delete"
  2. can you please add the possibility to skip files matching regular expressions in cyberduck CLI as well ?
    currently I see that's only possible in CyberDuck GUI.

thank you,

@cyberduck
Copy link
Collaborator Author

cyberduck commented Jul 29, 2015

@dkocher commented

Replying to [8957 adrian.tartareanu]:

  1. can you please add an enhancement that will allow the synchronize to delete remote files if they do not exist anymore in the source ? something like "robocopy /purge" or "winscp synchronize remote -delete"
    https://winscp.net/eng/docs/scriptcommand_synchronize

Duplicate for #12171.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

You can use glob patterns in --download and --upload arguments.

@cyberduck
Copy link
Collaborator Author

b079f10 commented

please excuse my noobness but it's very difficult to guess where and how exactly to place the regex using both --synchronize and --upload flags, are you kind enough to provide an example ?
I am currently using this as follows:

duck --synchronize mycyberduck://host/folder/ D:\windowspath\ -u teenant:user -p password -e upload

mycyberduck is a custom profile.

or even better, can you enhance the help menu so that it would be easier to understand how to use this feature ?

thank you,

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:6 adrian.tartareanu]:

The --synchronize command does not accept glob patterns for files to include. But with the --upload option you can use the syntax descibed in Glob pattern support for selecting files to transfer.

@cyberduck
Copy link
Collaborator Author

b079f10 commented

OK, I understand what you are saying: so instead of upload everything except some files you recommend me to only upload what I need. In some cases this may not be practical.
I will rephrase my issue:
can you use the exclusion filter .~..|.DS_Store|.svn|CVS in CyberDuck CLI for --upload option ?
again, the help described in the link you provided only references "you can use a wildcard pattern to select files", it does not explain how to unselect (exclude) files to upload.

thank you,

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:8 adrian.tartareanu]:

OK, I understand what you are saying: so instead of upload everything except some files you recommend me to only upload what I need. In some cases this may not be practical.
I will rephrase my issue:
can you use the exclusion filter .~..|.DS_Store|.svn|CVS in CyberDuck CLI for --upload option ?
again, the help described in the link you provided only references "you can use a wildcard pattern to select files", it does not explain how to unselect (exclude) files to upload.

I do understand this usage scenario. If you can set an environment variable in your CLI, you can set the property queue.upload.skip.regex as shown in Preferences. If have not used this this option to set properties myself on Windows. This might work if you are using in a Cygwin environment. Feedback very welcome, we know the documentation should be improved.

@cyberduck
Copy link
Collaborator Author

b079f10 commented

OK, I will sort this out one way or another and will offer you feedback in case I encounter anything else.
Great product and keep up the good work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants