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

Include sync check for dry run and reduce spamming #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Include sync check for dry run and reduce spamming #89

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 7, 2016

It's convenient to be able to use --dry-run to see what changes would be synced when syncing directories.

If syncing a previously synced directory, the dry-run step must include the sync_check (ie check of md5 hash) to be able to indicate what will be uploaded.

Also, if there are many files where only a handful have changed there will be a lot of spam with "(synced)" entries of all the unchanged files, so only print these lines if verbose output is enabled.

These changes makes the output of s4cmd look more like s3cmd when syncing directories.

Check md5 hash on dry run to know what will
be copied for the real run.

Suppress output for already synced messages
unless verbose is specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants