[Proxmox] Added trim script
This commit is contained in:
parent
c05a0d3ac8
commit
b80c728759
10
Linux/proxmox/container_trim.sh
Normal file
10
Linux/proxmox/container_trim.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# find container ids
|
||||||
|
containers=( $(pct list | awk -F " " '{print $1}') )
|
||||||
|
containers=("${containers[@]:1}")
|
||||||
|
|
||||||
|
# execute trim for each container
|
||||||
|
for container in "${containers[@]}"; do
|
||||||
|
pct fstrim $container
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user