Commit Graph

881 Commits

Author SHA1 Message Date
Antonio Russo f397687968
Do not require user to be specified for syncoid
Extends syncoid remote capabilities to match that of ssh as closely as
possible: allow a remote dataset to be specified without a username.

 - Detect if a remote reference is possible by looking for a : before
   any / characters.
 - Check if there are any pool names that might conflict with this
   name. E.g., 'weird:symbol/ds' might refer to the pool "symbol" on
   host "weird", and dataset ds. OR it might refer to the local pool
   "weird:symbol" and dataset ds.
 - Prefer local pools, matching existing behavior. No preexisting
   functioning configurations will break.
 - The name of the control socket is changed slightly.
 - A bug in the handling of remote datasets with colons in the name
   is addressed.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
2020-11-01 10:55:50 -07:00
Leo Winter d7bf12623d
Add git to apt install on Debian 2020-10-06 13:48:34 +00:00
kr4z33 b31a7ba7d8
Update INSTALL.md
"build-essential" was required for me to complete the Debian/Ubuntu instructions.
2020-08-17 19:16:26 -10:00
Jim Perkins 5092ff1000
typo 'target -bwlimit'
Use of uninitialized value in concatenation (.) or string at ./syncoid line 1317.
just an asuumption on my part considering the rest of the variables with same name dont have the space in that location
2020-08-05 11:37:48 -05:00
Jim Perkins 2c3de61b2b
Update sanoid.conf
keeps system from running sanoid on non existent datasets
2020-08-03 02:58:06 -05:00
jimsalterjrs 9544ea7e6a typo in syncoid help 2020-05-23 16:27:29 -04:00
James Bunton 6bc210deb3 fix stream sync from bookmark
syncoid fails in the following case:
- performing a stream sync (default)
- there are no matching snapshots between source and target
- there is a bookmark on the source matching a snapshot on the target
- there is an unrelated snapshot on the source older than this bookmark

This happens because the units for snapshots and bookmarks were
different. syncoid tells `zfs send` to generate an incremental stream
starting from the bookmark and going to the unrelated older snapshot.
ZFS refuses to do this because it doesn't make sense.

This fix is a bit of hack. Ideally we should share the counter code
between getsnaps and getbookmarks.
2020-05-03 23:45:29 +10:00
Christoph Klaffl 9ab57e9bb4
added documentation regarding --keep-sync-snap option 2020-05-01 17:26:54 +02:00
Christoph Klaffl d77cfdf4c7
implemented option for keeping sync snaps 2020-05-01 17:20:07 +02:00
Christoph Klaffl 0e807386c4
use sudo if neccessary for checking pool capabilities regarding resumeable send 2020-04-20 19:20:28 +02:00
Christoph Klaffl e1a6507455
direct connection will default to busybox nc again but can be switched to mbuffer 2020-04-02 21:37:06 +02:00
Christoph Klaffl fcae918ffa
updated readme regarding busybox nc -> mbuffer switch 2020-03-31 09:40:36 +02:00
Christoph Klaffl 807f6fa1bb
check if socat and mbuffer is available for insecure direct connection 2020-03-31 09:27:17 +02:00
Christoph Klaffl f0dfd46c9f
use mbuffer tcp listen socket instead of busybox nc 2020-03-30 20:15:09 +02:00
Christoph Klaffl 2e6abddb5e
fixed uninitialized value warning 2020-03-30 19:01:54 +02:00
Christoph Klaffl 84bc3164f0
implemented option for direct connection via socat and busybox nc 2020-02-21 20:34:28 +01:00
Christoph Klaffl adc99d0349
fixed minor warning 2020-02-17 17:43:23 +01:00
Jim Salter e6c5aa052e
Merge pull request #454 from phreaker0/reworked-options
reworked argument parsing and error out if file path is not provided
2020-02-15 09:36:58 -05:00
Christoph Klaffl b808a74e2e
catch another case were the resume state isn't availabe anymore 2020-02-14 18:38:38 +01:00
Christoph Klaffl 909d3f3765
added note for busybox based distributions 2020-02-14 09:37:38 +01:00
Christoph Klaffl 4ebdc9d173
check for an invalid argument combination 2020-02-13 18:31:56 +01:00
Christoph Klaffl b09d2b66fc
typo 2020-02-13 09:26:15 +01:00
Christoph Klaffl 13ba2b43fa
fix iszfsbusy check for similar dataset names 2020-02-13 01:37:54 +01:00
Christoph Klaffl 44f7cae115
implemented pre pruning script hook 2020-02-13 01:01:09 +01:00
Jim Salter 487693993b
Merge pull request #499 from phreaker0/docs-install-stable
instruct to use the latest stable release instead of master
2020-02-12 15:47:20 -05:00
Christoph Klaffl eabe3aa791
added note about the default options if some interval types aren't sepcified 2020-02-12 21:31:21 +01:00
Christoph Klaffl cf7ab69e69
added note about capacity limit overriding 2020-02-12 21:14:08 +01:00
Christoph Klaffl dd95496cd0
document the atomic way recursively take snapshots 2020-02-12 20:40:15 +01:00
Christoph Klaffl d1a161ca72
fix typo in argument description 2020-02-12 20:30:52 +01:00
Christoph Klaffl 3a7f468939
extended install instructions for centos if perl dependencies can't be found 2020-02-12 20:20:46 +01:00
Christoph Klaffl a3f242d0d4
added cron setup example 2020-02-12 20:10:28 +01:00
Christoph Klaffl ef38110d69
instruct to use the latest stable release instead of master 2020-02-12 18:35:03 +01:00
Christoph Klaffl 1bad3cd25b
append timezone offset to the syncoid snapshot name to fix DST collisions 2020-02-12 18:24:08 +01:00
Christoph Klaffl 0b582f6200
group snapshot creation together so pre/post scripts are only run once per dataset and prepare for future atomic grouping feature 2020-02-12 17:48:42 +01:00
Christoph Klaffl 34d6d44fa8
Merge branch 'master' into pr447 2020-02-11 17:45:54 +01:00
Jim Salter d30e7c0140
Merge pull request #491 from phreaker0/fix-postinst
fix debian postinst in the case of non existing legacy cache file
2020-01-31 07:45:36 -05:00
Christoph Klaffl dedf35df85
fix debian postinst in the case of non existing legacy cache file 2020-01-31 09:13:18 +01:00
Jim Salter f87160d6db
Merge pull request #481 from croadfeldt/patch-1
Fixed Typo in arguments.
2020-01-24 08:46:31 -05:00
Jim Salter 9213359dbe
Merge pull request #483 from phreaker0/debian-postinst
post install script for debian package to remove old unused snapshot …
2020-01-22 16:12:15 -05:00
Christoph Klaffl d3309d311f
post install script for debian package to remove old unused snapshot cache file 2020-01-22 17:22:44 +01:00
Jim Salter fee3739110
Merge pull request #463 from lopsided98/sanoid-cache-file
Move sanoid cache and lock files to subdirectories
2020-01-22 10:50:33 -05:00
croadfeldt bb30496d19
Fixed Typo in arguments.
Removed errant A in zfs list command line arguments.
2020-01-18 01:52:12 -06:00
Jim Salter 29095052b0
Merge pull request #478 from phreaker0/remove-invalid-locks
fixed missing ;
2020-01-17 17:47:18 -05:00
Christoph Klaffl 987dcc4885
Merge branch 'master' into path2 2020-01-17 10:34:23 +01:00
Christoph Klaffl 2de006072f
fixed missing ; 2020-01-17 01:04:16 +01:00
Christoph Klaffl d0ef3ec2d5
Merge branch 'master' into preserve-recordsize 2020-01-16 21:23:07 +01:00
Christoph Klaffl f3a1efe4ef
Merge branch 'master' into reworked-options 2020-01-16 21:17:26 +01:00
Jim Salter e5c998c71d
Merge pull request #408 from gdevenyi/pvoptions
add ability to configure pv in syncoid
2020-01-16 13:57:10 -05:00
Jim Salter 3d236c6937
Merge pull request #474 from HavardLine/patch-1
Update INSTALL.md
2020-01-16 13:55:06 -05:00
Jim Salter 6404f5d308
Merge pull request #453 from phreaker0/show-current-version
also show current file version if available
2020-01-16 13:53:54 -05:00