Giter Site home page Giter Site logo

Comments (3)

AmesCornish avatar AmesCornish commented on July 28, 2024

Are you trying to copy a single snapshot called src, or all the snapshots in the src directory? If the later, you need to change /dir/of/src to /dir/of/src/ in your buttersink command line.

from buttersink.

holmesb avatar holmesb commented on July 28, 2024

Single snap. I think I've fixed that now. I was specifying the dir above the snap rather than the snap directory itself. However now failing:

[root@nas03 tmp]# python /usr/lib/python2.7/site-packages/buttersink/buttersink.py /dir/of/source ssh://root@dest_server/dir/of/dest/
root@src_server's password:
Remote version: {u'btrfs': u'btrfs-progs v4.3.1', u'buttersink': u'0.6.7', u'linux': u'Linux-4.3.3-1.el7.elrepo.x86_64-x86_64-with-redhat-3.8.10-Core'}
measured size (7.317 GiB), estimated size (7.317 GiB)
Optimal synchronization:
7.317 GiB from 1 diffs in btrfs /dir/of/source
7.317 GiB from 1 diffs in TOTAL
Xfer: 47f8...1c7b /dir/of/source from None (7.317 GiB)
btrfs send errors
At subvol /dir/of/source
ERROR: failed to dump stream. Broken pipe

ERROR: vars() argument must have dict attribute.

However, the command:

btrfs send -v /dir/of/source | ssh dest_server btrfs receive /dir/of/dest/

works fine:

[root@src_server tmp]# btrfs send -v /dir/of/source | ssh dest_server btrfs receive /dir/of/dest/
At subvol /dir/of/source
root@source_server's password:
At subvol /source_dir
BTRFS_IOC_SEND returned 0
joining genl thread

from buttersink.

AmesCornish avatar AmesCornish commented on July 28, 2024

I'm not able to reproduce the second "Broken pipe" error. I suspect it was a transient network or btrfs error. If this is still a problem for you, could you re-test with buttersink 0.6.8 and send the log (using the --logfile argument)? Thanks!

from buttersink.

Related Issues (20)

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.