Commit Graph

36 Commits

Author SHA1 Message Date
Chriz
ecd5345825
Update bashclub-zfs 2022-12-25 22:43:43 +01:00
Chriz
20f8884858
Update bashclub-zfs 2022-12-25 22:41:55 +01:00
Chriz
2189c66c13
Delete backup-zfs 2022-12-25 22:40:56 +01:00
Chriz
886ce7e6d1
Delete backup-boot 2022-12-25 22:40:42 +01:00
Chriz
64d10ff74d
Delete backup-zfs-shell 2022-12-25 22:40:17 +01:00
Chriz
e1cb6d35ec
Controlscript for Bashclub ZFS
Using that Script collects all Datasets/ZVOLs from a partent Daset and creates individual Jobs instead of a faulty recursive replication
2022-03-11 12:34:45 +01:00
cpzengel
c8f19ac978
Update 02pull
Corrected Spelling
Default SSH Port 22
2022-02-04 15:37:24 +01:00
cpzengel
c51ce58bef
Update bashclub-zfs
Does not run twice
2022-01-31 16:50:38 +01:00
cpzengel
6830ddf05f
Update bashclub-zfs 2022-01-31 16:49:26 +01:00
cpzengel
3f681bce20
Update 02pull 2022-01-31 16:08:49 +01:00
cpzengel
f296a993a4
Create bashclub-zfs
For Testing, new Paramters
2021-10-06 19:20:19 +02:00
cpzengel
532bce7007
Update 02pull 2019-11-21 14:23:56 +01:00
cpzengel
58a1c362e2
Update 02pull
error correction
2019-11-21 14:23:29 +01:00
cpzengel
a386cb2146
Update README.md 2019-11-11 22:15:09 +01:00
cpzengel
d55baad105
Add files via upload
That simple Script detects all Datasets and ZVOLS on a remote SSH Site and pulling it to local ZFS Storage
Should Work on ZOL like Debian/Proxmox and FreeBSD/FreeNAS
2019-11-11 15:23:57 +01:00
cpzengel
8fb9106826
Add files via upload
No Sudo
Added -p Parameter for SSH Port
Changed from -I to -i for no intermediate Snapshots
Enabled SSH Compression -C
2019-11-11 15:19:24 +01:00
Kevin McCormick
21f780de69 ssh mode: fix bug on log entry 2017-08-01 14:53:58 -07:00
Kevin McCormick
7e0a2a583e ssh mode: log file details of received snapshots
Instead of just 10+ log entries saying receiving a snapshot, give at least some
details on which file is in flight.
2017-07-28 11:02:01 -07:00
Kevin McCormick
aafb241393 ssh mode: zfsfind should not specify a path 2017-03-10 10:10:57 -08:00
Kevin McCormick
720754a504 ssh mode: use forced backup-zfs-shell
Ensure the backup connection to the SSH server can't do anything other
than designed. Uses ssh's authorized_keys command= statement to launch
backup-zfs-shell, which then supports only the handful of operations
required to perform backups.

$destpath is no longer used, but still included in the documentation
until it can be entirely written out.
2017-03-09 12:08:50 -08:00
Kevin McCormick
afb2b924ba ssh mode: fix last snapshot tracking 2017-03-07 15:28:21 -08:00
Kevin McCormick
28c7cbc747 ssh mode: add gpg encryption support 2017-03-07 15:28:21 -08:00
Kevin McCormick
3bb83e8029 ssh mode: stage snapshots on ssh server
Turn backup-zfs into a two-step process:
1. Send snapshots to a server over SSH
2. Receive those snapshots over SSH

Supports a disconnected backup environment where the backup storage host
and the system being backed up don't have to be online at the same time.

Use case: Send snapshots from my home server to my work server while I'm
asleep, then read them over the LAN from my work server to my external
drive while I'm at work.
2017-03-07 15:24:22 -08:00
Kevin McCormick
6d906ad640 When verbose, make zfs send/recv verbose as well 2016-10-10 09:56:22 -07:00
Kevin McCormick
cf353fafd4 Allow matching any snapshot between src & dest
Previously we looked for the specific tagged snapshot, but that doesn't
actually work properly. Now simply find the most recent snapshot on dest
and compare to src. It must exist on src.
2016-09-16 16:10:33 -07:00
Kevin McCormick
0850e82df3 exit on failure of critical zfs commands
Execution should not continue upon failure of certain zfs commands. In
particular, cleanup/rotation of the oldest snapshots will no longer
occur upon a failure to send/receive.
2016-09-12 11:39:29 -07:00
Kevin McCormick
12f7666a2f fail early if destination fs doesn't exist
zfs receive will fail, but the source snapshot has already been created,
and the rotation/cleanup of old snapshots will be triggered
2016-09-12 11:28:48 -07:00
Kevin McCormick
48f905f0e2 Fix README statement about destination
Using zfs recv -e, not -d
2016-08-04 16:33:36 -07:00
Kevin McCormick
4e065b7433 Write README 2016-08-04 16:30:45 -07:00
Kevin McCormick
481212e5e6 Improve usage statement 2016-08-04 16:29:28 -07:00
Kevin McCormick
f2b40a2ce8 save only last component of src fs in dest
Change zfs receive command to use -e (was -d).

Allow greater control of dest placement. srcpool/a/really/long/path
should not force me to deal with destpool/backupdest/a/really/long/path.
2016-08-04 16:26:07 -07:00
Kevin McCormick
473e51d89c split snapshot/syslog "tag" to independent values 2016-08-04 16:24:08 -07:00
Kevin McCormick
2eb6a5644e change dateformat to more generic date options
Allow switching to UTC or any other full control of date(1)
2016-08-04 16:23:02 -07:00
Kevin McCormick
c7dc56255e add quiet mode 2016-08-04 15:02:33 -07:00
Kevin McCormick
c6a82a7ccd Import scripts
* supports either local or remote usage
* always uses sudo
* getopts for a few settings
* keeps its own snapshots for send/recv purposes, independent of others
2016-08-04 15:01:54 -07:00
Kevin McCormick
26c78dff3e Initial commit 2016-08-04 14:59:40 -07:00