rubrikinc / rubrik-scripts-for-bash

Sample Bash scripts
MIT License
5 stars 7 forks source link

Add on_demand_backup_fileset.sh and iperf_test.sh #2

Open stevenctong opened 3 years ago

stevenctong commented 3 years ago

Description

Add scripts:

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

thomas-merz commented 1 year ago

Hi @stevenctong ,

if I had seen your PR earlier I wouldn't had to script this, too. 🤦‍♂️ But I've now a more elegant solution with more features that can use both auth-mechanisms:

And it can dynamically identify which filesets relate to the host that calls the script and backup them. Teaser:

# Take a Rubrik-Snapshot of some NFS-Mounts.
# Currently only those Mounts are relevant, which do end with a specific string.
thomas-merz commented 1 year ago

What do you @stevenctong want to achieve with your iperf scripts?
It looks like overkill for me, because a simple iperf3 -s on the Rubrik-Nodes and a simple for h in {1..4}; do iperf3 -c rubrik"$h" -some-parameters; done will be sufficient, too!?