You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding an --exclude flag when running with sync command and got Incorrect Usage: flag provided but not defined: -exclude and surely enough from help sync, --exclude is not in the options list. I was wondering, since this attempts to be a drop in replacement for s3cmd, if there are plans to allow filtering with the sync command in the future? It would be similar to s3cmd's (under Filtering with —exclude / —include rules)
The text was updated successfully, but these errors were encountered:
In the meantime if anyone is looking for a temporary solution, i've hardcoded my exclusion in my own build by modifying buildFileInfo function in cms_sync.go. First thing in the filter function given to filepath.Walk, add a condition that would match all the files and folders you intent to exclude and return nil. Also apparently WalkDir is more efficient than Walk according to this, but in my use case, couldn't tell the difference.
I tried adding an
--exclude
flag when running withsync
command and gotIncorrect Usage: flag provided but not defined: -exclude
and surely enough fromhelp sync
,--exclude
is not in the options list. I was wondering, since this attempts to be a drop in replacement for s3cmd, if there are plans to allow filtering with thesync
command in the future? It would be similar to s3cmd's (under Filtering with —exclude / —include rules)The text was updated successfully, but these errors were encountered: