Skip to content

Commit

Permalink
Always send dataset properties ()
Browse files Browse the repository at this point in the history
  • Loading branch information
stblassitude committed Aug 1, 2017
1 parent fba82ce commit c9f3956
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ zfs snapshot pool/dataset@201707301234

* Copy over a dataset that does not yet exist on the destination, or has no snapshots:
```
zfs send sourcepool/dataset@201707301234 | ssh host zfs recv -F destpool/dataset
zfs send -p sourcepool/dataset@201707301234 | ssh host zfs recv -F destpool/dataset
```

* Copy over a dataset that has at least one snapshot:
* Copy over a dataset that has at least one snapshot on the destination pool:
```
zfs send -I 201707290000 sourcepool/dataset@201707301234 | \
zfs send -p -I 201707290000 sourcepool/dataset@201707301234 | \
ssh host zfs recv -F destpool/dataset
```

Expand All @@ -164,6 +164,10 @@ existing datasets and snapshots.

## Changelog

### Unreleased

+ Always send dataset properties (`zfs send -p`)

### Release 1.1.0 (2017-07-30)

* Improve error handling and documentation
Expand Down
2 changes: 1 addition & 1 deletion zfssync.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def sync(self, srcds):
log(1, "sync: {} -> {}: syncing snapshots from {} to {}".format(srcds, dstds, startSnapId, endSnapId))
else:
log(1, "sync: {} -> {}: syncing all snapshots up to {}".format(srcds, dstds, endSnapId))
shellPipe(srcds.pool.host, ['zfs', 'send'] + startcmd + [endSnap],
shellPipe(srcds.pool.host, ['zfs', 'send', '-p'] + startcmd + [endSnap],
dstds.pool.host, ['zfs', 'recv', '-F', dstds.dataset], nosideeffect=False)

def __repr__(self):
Expand Down

0 comments on commit c9f3956

Please sign in to comment.