adaugherity / zfs-backup Goto Github PK
View Code? Open in Web Editor NEWZFS backup via zfs send/recv over ssh
ZFS backup via zfs send/recv over ssh
Hi,
is there a way not to replicate houry and frequent snapshots between dailys?
I removed the -R at zfs send, but it seems it still does ist!
Cheers
Chriz
Hi Guys,
perhaps you are able to add a kind of compression to the Replication, similar FreeNAS does it.
Perhaps you can Pipe the zfs send and recive via a gzip or lz4?
We do not use compression on Datasets and ZVOLs because of using VMs and latency!
This would multiply the load of Data, especially on WAN Connections.
For local Speedup perhaps you can add mbuffer?
http://everycity.co.uk/alasdair/2010/07/using-mbuffer-to-speed-up-slow-zfs-send-zfs-receive/
I really appreciate your great work!
If there is a way to donate, let me know!
chriz
http://serverfault.com/questions/74411/best-compression-for-zfs-send-recv
Having the following pool layout:
tank
tank/a
tank/a/b
tank/c
...
all of the filesystems are handled well, due to -e/-d FS=${DATASET#/} and FS_BASE=${DATASET##/}
However, this doesn't work for the very pool root (not sure what the official name for it is).
"tank" doesn't match neither FS nor FS_BASE and will result in the following remote layout:
remote/tank
remote/a
remote/a/b
remote/c
...
the goal is to make sure local "tank" (pool root) can sync into "remote" (remote pool root).
I used the following code to provide special case handling for pool root, right after -e/-d case handling (
Line 146 in 4eb8815
# Special case for pool root
if [[ "$DATASET" != */* ]]
then
TARGET="$REMPOOL"
fi
please add this special case into your repo.
Hi, please provide a function to keep snapshots longer on destination!
hi,
please explain (step by step) how to set the $PROP value in script for files-1tb/jails because I'm misunderstand something:
Filesystem 1K-blocks Used Avail Capacity Mounted on
files-1tb/jails 823983904 128 823983776 0% /files-1tb/jails
Thank you.
hi .. im try a script for backup snapshot to another server using zfs. but i have error like this
No datasets configured for backup! Please set the 'com.edu:backuptarget' property
appropriately on the datasets you wish to back up.
what the meaning "com.edu:backuptarget" ?
if i see a command "zfs get datapool/fs1"
im not see property "com.edu:backuptarget"
and if im add manual will be error no value property.
anyone can help ? or give me any reference ?
thanks :)
Please add a flag to Filter like -r but with creation value
When I run the script without the -v-Option, there's no output -- when I use -v I get this:
`./zfs-backup.sh -v
rpool/vm-199-disk-0:
./zfs-backup.sh[195]: [: argument expected
./zfs-backup.sh[213]: [: argument expected
Remote snapshot is the same as local; not running.
`
What's wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.