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

S3: would be nice to ignore symbolic links #453

Closed
ddarbyson opened this issue Oct 29, 2013 · 8 comments
Closed

S3: would be nice to ignore symbolic links #453

ddarbyson opened this issue Oct 29, 2013 · 8 comments
Labels
feature-request A feature should be added or improved. s3sync s3

Comments

@ddarbyson
Copy link

Please add --[no]-follow_symlinks or similar to ignore symbolic links when using S3 cp, sync, etc.. commands.

Otherwise --exclude */my/path/aliases/* --exclude */my/path/sites/* can be cumbersome.

@shaneiseminger
Copy link

+1 on on this. If you have several symlinks it is pretty cumbersome to manually --exclude them all, and it makes backup script maintenance more complicated. In my case, I'm trying to run a backup to S3, and aws is creating a duplicate copy of a very large symlinked directory.

@forrie
Copy link

forrie commented Feb 8, 2014

There should be a command-line switch to ignore symlinks (or follow them), as most other utilities have. This is standard. I just had a large copy choke and die because aws-cli didn't know how to handle a symlink that pointed to nothing.

@campbellwmorgan
Copy link

+1 on this finding it very annoying to manually exclude symlinks

@woodnt
Copy link

woodnt commented May 17, 2014

+1 agree

@seangps
Copy link

seangps commented Jul 14, 2014

+10

@tnoskilz
Copy link

seriously, please! I was going to try to migrate to using aws s3 sync and role-based auth instead of s3cmd for instance provisioning from s3 buckets in my cloudformation templates. Instead, it barfs on every broken symlink on the instance. Excluding them from the sync doesn't help. I even tried breaking my / level sync down into individual subdirs and hit other broken symlinks on a fresh amazon linux instance. This is maddening when these symlinks aren't related to any of the files being sync'd to the instance from s3. (or even in directories it should be diving into).

@jamesls
Copy link
Member

jamesls commented Jul 21, 2014

Thanks for the feedback. Marking this as accepted, we'll add a --[no]-follow-symlinks option to the s3 commands.

@jamesls
Copy link
Member

jamesls commented Aug 1, 2014

Closing, this was implemented via #854 and now part of the latest CLI release. Thanks everyone for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. s3sync s3
Projects
None yet
Development

No branches or pull requests

8 participants