skip to navigation
skip to content

buttersink 0.3.1

Buttersink is like rsync for btrfs snapshots

Latest Version: 0.6.8


ButterSink synchronizes two sets of btrfs read-only subvolumes

ButterSink is like rsync, but for btrfs subvolumes instead of files,
which makes it much more efficient for things like archiving backup
snapshots. It is built on top of btrfs send and receive capabilities.
Sources and destinations can be local btrfs file systems, remote btrfs
file systems over SSH, or S3 buckets.

To use the ssh back-end, ButterSink must be installed on the remote

ButterSink *only* handles read-only subvolumes. It ignores read-write
subvolumes and any files not in a subvolume.


usage: [-h] [-n] [-d] [-q] [-l LOGFILE] [-V] [<src>] <dst>

Synchronize two sets of btrfs snapshots.

positional arguments:
<src> a source of btrfs snapshots
<dst> the btrfs snapshots to be updated

optional arguments:
-h, --help show this help message and exit
-n, --dry-run display what would be transferred, but don't do it
-d, --delete delete any snapshots in <dst> that are not in <src>
(Not implemented)
-q, --quiet once: don't display progress. twice: only display
error messages
-l LOGFILE, --logfile LOGFILE
log debugging information to file
-V, --version display version

<src>, <dst>: [file://]/path/to/directory/[snapshot]
ssh://[user@]host/path/to/directory (Not implemented)

If only <dst> is supplied, just list available snapshots. The trailing "/"
on a <src> *is* significant.

Copyright (c) 2014 Ames Cornish. All rights reserved. Licensed under GPLv3.
See and LICENSE.txt for more info.


S3 interaction and S3 authentication are handled by Boto. Boto will read
S3 credentials from `~/.boto`, which should look like this:


AWS access policies are tricky. Here's an example policy to give an IAM
user access for ButterSink:

"Statement": [
"Effect": "Allow",
"Action": ["s3:*"],
"Resource": [

ButterSink needs root privileges to access btrfs file systems.


From source:

git clone
cd buttersink
./ --help

With PyPi:

pip install --upgrade buttersink
buttersink --help


checksumdir <dir>

Checksumdir is a utility to create checksum hashes of all the data and key
metadata in a directory. Useful for verifying the integrity of backups.


Ames Cornish

Copyright (c) 2014 Ames Cornish. All rights reserved. Licensed under

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of

See for more details.  
File Type Py Version Uploaded on Size
buttersink-0.3.1.linux-x86_64.tar.gz (md5)
built for Linux-3.13.0-32-generic-x86_64-with-glibc2.4
"dumb" binary any 2014-08-06 75KB
buttersink-0.3.1.tar.gz (md5) Source 2014-08-06 35KB