Code Monkey home page Code Monkey logo

boto_rsync's People

Contributors

seedifferently avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boto_rsync's Issues

crashes on borken symlinks

This tools is fantastic-- but it seems crash on broken symlinks. Telling it to ignore 0 byte files doesn't solve it, since the symlinks are not 0 bytes. Maybe I'm missing something...

www/boi-cms.old/taps_ctrl.sh
Traceback (most recent call last):
File "/usr/local/bin/boto-rsync", line 1150, in
main()
File "/usr/local/bin/boto-rsync", line 544, in main
file_size = os.path.getsize(fullpath)
File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/var/www/boi-cms.old/current'
Scanning for files to transfer...
shells
Muttrc
pam.conf
nanorc
legal
Traceback (most recent call last):
File "/usr/local/bin/boto-rsync", line 1150, in
main()
File "/usr/local/bin/boto-rsync", line 544, in main
file_size = os.path.getsize(fullpath)
File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/etc/blkid.tab'
ckelty@beadle:/etc/backup$ ls -al /etc/blkid.
blkid.conf blkid.tab
ckelty@beadle:/etc/backup$ ls -al /etc/blkid.tab
lrwxrwxrwx 1 root root 15 2011-07-23 16:47 /etc/blkid.tab -> /dev/.blkid.tab
ckelty@beadle:/etc/backup$ ls -al /var/www/boi-cms.old/current
lrwxrwxrwx 1 capistrano www-data 40 2012-04-12 14:20 /var/www/boi-cms.old/current -> /var/www/boi-cms/releases/20120412212119
ckelty@beadle:/etc/backup$

boto_rsync does not overwrite files

I have been trying to upload multiple files, and at the beginning the files were overwritten in the bucket, but now they don't, how can I overwrite files or delete them in the bucket before uploading? I have this script executed in a cron but is not usable anymore because I do not have any way to overwrite files. Thanks!

403 Forbidden

running the below gives the error, but putting the key and secret in the cli works fine.
boto-rsync --access-key /etc/awsapi-key --secret-key /etc/awsapi-key --glob /var/log/nginx/access.log s3://nginx-access-logs/

I used the example in the boto config link
[Credentials]
aws_access_key_id =
aws_secret_access_key =

Any thoughts? I'm at a loss as to the why.

Error invalid literal for int() with base 10

Traceback (most recent call last):
File "/usr/local/bin/boto-rsync", line 1122, in
main()
File "/usr/local/bin/boto-rsync", line 312, in main
debug = int(a)
ValueError: invalid literal for int() with base 10: '/srv/htdocs/firstclass/dev/instalacoes/lojaskd/novalojaskd_R1900/prd/11000/11011'

if i use --access-key the error appear like:

ValueError: invalid literal for int() with base 10: '--access-key'

:C

All files get transferred every time.

Hey there.

Every time I run boto_rsync it transfers every single file from the source to the destination. The command I'm using to run it is:

boto-rsync -v --access-key=XXXXXX --secret-key=XXXXXX --endpoint="s3-eu-west-1.amazonaws.com" /local/path/folder s3://bucketname/files/remote/path/folder

I've got boto 2.4.1 installed though not sure if that's relevant.

Thanks.

boto.https_connection.InvalidCertificateException on Google Storage

I'm getting errors of this form:

Host b.egf.me.commondatastorage.googleapis.com returned an invalid certificate (remote hostname "b.egf.me.commondatastorage.googleapis.com" does not match certificate): {'notAfter': 'Jun  7 19:43:27 2013 GMT', 'subjectAltName': (('DNS', '*.googleusercontent.com'), ('DNS', '*.blogspot.com'), ('DNS', '*.commondatastorage.googleapis.com'), ('DNS', '*.doubleclickusercontent.com'), ('DNS', '*.ggpht.com'), ('DNS', '*.googledrive.com'), ('DNS', '*.googlesyndication.com'), ('DNS', '*.storage.googleapis.com'), ('DNS', 'blogspot.com'), ('DNS', 'commondatastorage.googleapis.com'), ('DNS', 'doubleclickusercontent.com'), ('DNS', 'ggpht.com'), ('DNS', 'googledrive.com'), ('DNS', 'googleusercontent.com'), ('DNS', 'static.panoramio.com.storage.googleapis.com'), ('DNS', 'storage.googleapis.com')), 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'*.googleusercontent.com'),))}

I really wish that wrapped...

s3 to ssh

How would I go about using ssh for the destination?

RuntimeError: Requires Python 2.5 or above and does not support Python 3

$ pip install boto_rsync
Collecting boto_rsync
  Downloading https://files.pythonhosted.org/packages/b9/d7/989c5beeddfd9ba60c4cefdcad444ce0102e2a82f79f5ece6449e95ecf33/boto_rsync-0.8.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-7l2i_dcy/boto-rsync/setup.py", line 10, in <module>
        raise RuntimeError('Requires Python 2.5 or above and does not support '
    RuntimeError: Requires Python 2.5 or above and does not support Python 3

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-7l2i_dcy/boto-rsync/

Deprecate boto-rsync in favor of awscli?

The Python team at AWS has been working hard on a boto-based CLI project for their cloud services. Among the tools included is an interface for S3 which duplicates (and in many ways supersedes) most of the functionality provided by boto-rsync.

https://github.com/aws/aws-cli
http://docs.aws.amazon.com/cli/latest/reference/s3/index.html

Unless anybody sees a good reason not to, I'll probably deprecate this project in favor of awscli. They have more resources at their disposal for maintenance, not to mention the fact that it's an "official" tool provided by the AWS team.

Please discuss here if you feel otherwise.

Boto Compatibility for boto-rsync

I am one of the maintainers of Boto. A few weeks ago we began to merge backward-compatible Python 3.3 and 3.4 support into our develop branch. Most modules now support Python 3 with passing unit and integration tests, and I am hoping to do a release soon. I am reaching out to you to ask if you would test our develop branch with boto-rsync.

Testing against Python 2.x will help to ensure that we don't accidentally break third party modules like boto-rsync. If you would like, you may also try out the Python 3 support and let us know any feedback. More information about the Python 3 support can be found in this boto-users post:

https://groups.google.com/forum/#!topic/boto-users/vcvoy8zrfP8

I appreciate any time that you can put into helping the Boto project with this.

This request is part of boto/boto#2437

New maintainer?

1 year without commit.
No pull request merged.
Many forks...

Maybe it's time to have a new maintainer(s) if @seedifferently doesn't have enough time.

Without answer, maybe the community must do a "community" fork. What do you think?

S3 bucket to bucket

When doing a boto-rsync from one bucket to another, is the data being transferred between directly between the two, or am I downloading, then uploading? From the out put it looks direct, but I'm can't tell for sure.

speed up 15x with parallel transfers?

Not sure if this has been looked into already, but the speed of transfers seems to be vastly improved by threads/processes running in parallel.

My experience with is is using dreamhost, it's possible the official s3 is different.

I noticed a 5x improvement in speed in calling boto-rsync on each of 5 large directories, rather than on the single parent directory. I assume an internal system for using multiple upload threads/queues would see similar improvements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.