diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-22 14:54:21 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-22 14:54:21 +0100 |
commit | a00480771ac3b3ea6f5115524aca612d96341a0f (patch) | |
tree | bb228a0bb9db9710021c1bfe668f62799f7858c5 /Scripts/.local/scripts/folder_size | |
parent | 2bd582e419e502795f35d858375304b842ba09e4 (diff) | |
download | dotfiles-a00480771ac3b3ea6f5115524aca612d96341a0f.tar.gz dotfiles-a00480771ac3b3ea6f5115524aca612d96341a0f.tar.bz2 dotfiles-a00480771ac3b3ea6f5115524aca612d96341a0f.zip |
(Scripts)+create_backup,+folder_size
create_backup does the obvious using tar and xz. Needs two arguments
for what and where. folder_size does the obvious using du.
Diffstat (limited to 'Scripts/.local/scripts/folder_size')
-rwxr-xr-x | Scripts/.local/scripts/folder_size | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/folder_size b/Scripts/.local/scripts/folder_size new file mode 100755 index 0000000..fe136c6 --- /dev/null +++ b/Scripts/.local/scripts/folder_size @@ -0,0 +1,3 @@ +#!/usr/bin/sh + +du -BM -d $1 | sort -n |