Cyberduck Mountain Duck CLI

#8957 new enhancement

Skip files matching regular expressions

Reported by: adrian.tartareanu Owned by:
Priority: low Milestone:
Component: cli Version: 4.7.1
Severity: normal Keywords: synchronize
Cc: Architecture:
Platform: Windows 8.1

Description (last modified by dkocher)

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,

Change History (10)

comment:1 in reply to: ↑ description Changed on Jul 29, 2015 at 10:10:32 AM by dkocher

Replying to 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 #222.

comment:2 Changed on Jul 29, 2015 at 10:11:19 AM by dkocher

  • Component changed from core to cli
  • Summary changed from Synchronize enhacement to Skip files matching regular expressions

comment:3 Changed on Jul 29, 2015 at 10:16:02 AM by dkocher

  • Description modified (diff)

comment:4 Changed on Jul 29, 2015 at 10:16:45 AM by dkocher

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

comment:5 Changed on Jul 29, 2015 at 10:17:18 AM by dkocher

  • Priority changed from normal to low

comment:6 follow-up: Changed on Jul 29, 2015 at 11:27:09 AM by adrian.tartareanu

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,

Version 0, edited on Jul 29, 2015 at 11:27:09 AM by adrian.tartareanu (next)

comment:7 in reply to: ↑ 6 Changed on Jul 29, 2015 at 1:04:00 PM by dkocher

Replying to 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.

comment:8 follow-up: Changed on Jul 29, 2015 at 1:57:17 PM by 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.

thank you,

comment:9 in reply to: ↑ 8 Changed on Jul 29, 2015 at 2:58:30 PM by dkocher

Replying to 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.

comment:10 Changed on Jul 29, 2015 at 9:11:47 PM by adrian.tartareanu

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 !

Note: See TracTickets for help on using tickets.
swiss made software