about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/deprecated/dua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhome-manager/packages/scripts/deprecated/dua6
-rwxr-xr-xhome-manager/packages/scripts/deprecated/dua-up3
2 files changed, 9 insertions, 0 deletions
diff --git a/home-manager/packages/scripts/deprecated/dua b/home-manager/packages/scripts/deprecated/dua
new file mode 100755
index 00000000..628fa6f2
--- /dev/null
+++ b/home-manager/packages/scripts/deprecated/dua
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+tmp=$(mktemp)
+cat $DUA_DATABASE > $tmp
+
+cat $tmp | awk '{print $1}' | sort 
diff --git a/home-manager/packages/scripts/deprecated/dua-up b/home-manager/packages/scripts/deprecated/dua-up
new file mode 100755
index 00000000..2201f351
--- /dev/null
+++ b/home-manager/packages/scripts/deprecated/dua-up
@@ -0,0 +1,3 @@
+#! /bin/bash
+sudo btrfs filesystem du --raw / > $DUA_DATABASE
+echo "done"