Begin adding a few root workflows, such as pulling Plex downloads.

This commit is contained in:
me
2026-08-14 13:09:41 -07:00
parent 4a641adb03
commit 3119920c9f
+24
View File
@@ -354,6 +354,30 @@ alias pull-prod="pull_prod_backups"
alias prod-pull="pull_prod_backups"
## Root Workflows ##
function go-root {
su
}
plex_dir='/data/user/0/com.plex.app/Plex Media Server/Sync/1'
plex_movie_dir="$plex_dir"/1
plex_series_dir="$plex_dir"/2
function plex {
go-root
cd "$plex_dir"
}
function pull-plex {
dest="$1"
if [[ -z "$dest" ]]; then
dest=/sdcard/Movies/
fi
go-root
cp -Rv "$plex_dir"/{1,2}/* "$dest"
}
## Finalize ##
# Export all functions! #