LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2015, 06:58 PM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
mengoshmink


mengoshmink, I just wanted to let you know I finished the script that allows me to host my media from an NFS server while allowing my WD TV Live to have it's library, write meta data/cover art to the directory without giving the TV Live write access to my movie files.

Here's the current test environment I have set up on my system.

cat /etc/exports
/home/garrett/VideoTest/Videos1 *(rw,async)

Video Directories and permissions
drwxrwxrwx 4 garrett garrett 4096 Jun 1 14:50 Videos1 # WD TV Live writeable, houses hard links to files
drwxr-xr-x 2 garrett garrett 4096 Apr 8 14:53 Videos2 # secure, houses movie files

Movie file in writeable directory(Videos1)
-rw-r--r-- 3 garrett garrett 1775807500 Jan 16 2014 Star Wars Episode 2.mkv

Movie file in secure RO movie directory(Videos2)
-rw-r--r-- 3 garrett garrett 1775807500 Jan 16 2014 Star Wars Episode 2.mkv

script
#!/bin/bash

SOURCEPATH="/home/garrett/VideoTest/Videos2/"
TARGETPATH="/home/garrett/VideoTest/Videos1/"

cd ${SOURCEPATH}
ls *mkv | while read LSRESULTS
do
cd ${TARGETPATH}
if [ ! -a "${LSRESULTS}" ]; then
ln "${SOURCEPATH}${LSRESULTS}" "${TARGETPATH}${LSRESULTS}"
fi
done

#END#
 
Old 06-02-2015, 01:19 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...shmink-80741/#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration