Skip to content

Commit

Permalink
artif: changed line feed in btrfs.yaml
Browse files Browse the repository at this point in the history
Changed line feed code from CRLF to LF.
  • Loading branch information
mnrkbys committed Aug 9, 2024
1 parent 13f2605 commit d171c4f
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions artifacts/live_response/storage/btrfs.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
version: 1.0
condition: command_exists "btrfs"
output_directory: /live_response/storage
artifacts:
-
description: Collect the list of all Btrfs mountpoints.
supported_os: [linux]
collector: command
command: mount | grep btrfs | awk '{print $3}'
output_directory: /%temp_directory%/storage
output_file: list_of_btrfs_mountpoints.txt
-
description: List all subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R.txt
-
description: List only snapshot subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -s %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-s.txt
-
description: List only readonly subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -r %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-r.txt
-
description: List deleted subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -d %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-d.txt
# -
# description: Collect the list of all Btrfs subvolumes.
# supported_os: [linux]
# collector: command
# foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
# command: btrfs subvolume list -a %line% | grep -v '<FS_TREE>' | awk -v mp="%line%/" 'NF{print mp$NF; found=1} END{if (!found) print mp}'
# output_directory: /%temp_directory%/storage
# output_file: list_of_btrfs_subvolumes.txt
-
description: Show information about mounted Btrfs subvolumes.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume show %line%
output_file: btrfs_subvolumes_show.txt
version: 1.0
condition: command_exists "btrfs"
output_directory: /live_response/storage
artifacts:
-
description: Collect the list of all Btrfs mountpoints.
supported_os: [linux]
collector: command
command: mount | grep btrfs | awk '{print $3}'
output_directory: /%temp_directory%/storage
output_file: list_of_btrfs_mountpoints.txt
-
description: List all subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R.txt
-
description: List only snapshot subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -s %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-s.txt
-
description: List only readonly subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -r %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-r.txt
-
description: List deleted subvolumes of mounted Btrfs filesystems.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume list -a -p -c -u -q -R -d %line%
output_file: btrfs_subvolumes_list_-a_-p_-c_-u_-q_-R_-d.txt
# -
# description: Collect the list of all Btrfs subvolumes.
# supported_os: [linux]
# collector: command
# foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
# command: btrfs subvolume list -a %line% | grep -v '<FS_TREE>' | awk -v mp="%line%/" 'NF{print mp$NF; found=1} END{if (!found) print mp}'
# output_directory: /%temp_directory%/storage
# output_file: list_of_btrfs_subvolumes.txt
-
description: Show information about mounted Btrfs subvolumes.
supported_os: [linux]
collector: command
foreach: cat "/%temp_directory%/storage/list_of_btrfs_mountpoints.txt"
command: btrfs subvolume show %line%
output_file: btrfs_subvolumes_show.txt

0 comments on commit d171c4f

Please sign in to comment.