lib/github_snapshot/snapshot.rb in github_snapshot-0.1.3 vs lib/github_snapshot/snapshot.rb in github_snapshot-0.1.4

- old
+ new

@@ -70,11 +70,11 @@ end def download_from_s3 GithubSnapshot.logger.info "downloading fom s3" begin - GithubSnapshot.exec "s3cmd sync --delete-removed s3://#{s3_bucket}/ #{backup_folder}/" + GithubSnapshot.exec "s3cmd sync --delete-removed --skip-existing s3://#{s3_bucket}/ #{backup_folder}/" rescue Utilities::ExecError GithubSnapshot.logger.info "s3cmd doesn't respect exit status\n"\ "there is a good chance that the sync was successful" end end @@ -91,10 +91,10 @@ Dir.chdir ".." end def upload_to_s3 GithubSnapshot.logger.info "uploading to s3" - GithubSnapshot.exec "s3cmd sync --delete-removed #{backup_folder}/ s3://#{s3_bucket}/" + GithubSnapshot.exec "s3cmd sync --delete-removed --skip-existing #{backup_folder}/ s3://#{s3_bucket}/" end end end