From 78e3f6d5f85f07ba4462f5ce592ba4ee0d007149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Wed, 24 Jun 2020 19:17:04 -0700 Subject: [PATCH] Added script to quickly mount all harddrives connected to the server, for local use. --- mount_drives.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 mount_drives.sh diff --git a/mount_drives.sh b/mount_drives.sh new file mode 100755 index 0000000..5c03056 --- /dev/null +++ b/mount_drives.sh @@ -0,0 +1,9 @@ +mount=/media + +drives=$(ssh jorge@paraulata.casa.vm ls /media ) + +for dir in ${drives[@]}; do + mkdir $mount/$dir; + chown jorge $mount/$dir + sshfs jorge@paraulata.casa.vm:$mount/$dir $mount/$dir & +done