View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Apr 03, 2008 4:24 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
I'd like to move some of the /myth/tv recordings to another storage location. However, I'd like to label them properly, as is done in the /myth/pretty directory.

Is there any way to move a symbolic link with the file attached? Or merge the link with the file? Something like that, so I can have pretty file names without manually changing the recording names?

Thanks ... yet again!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 4:35 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
I just cp the /pretty file and the .mpg follows.

cp /myth/pretty/Scrubs-03-03-03.mpg /storage/location/scrubs/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 12:49 pm 
Offline
Joined: Tue Nov 14, 2006 2:55 pm
Posts: 245
Location: South Jersey
Too Many Secrets >> That really works?? The pretty files are just symlinks so I don't see how it could.

I do vaguely recall though that R5F27 lets you put the mpg's in various directories, not just /myth/tv, is this true?

Thanks, _abs

_________________
R6.04, dual core 3ghz, 3 gig memory, Zotac 8400 passive heat sink dvi/hdmi out video, 500 gig sata, dual tuner hdhomerun, streamzap remote

Abby


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 12:59 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
My issue is I am burning to DVD using k3b. So I can't really use the cp command unless I can 'hot-copy' files over, rather than using a burning client.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 5:15 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
abigailsweetashoney wrote:
Too Many Secrets >> That really works?? The pretty files are just symlinks so I don't see how it could.

Yes, of course it does. It's fundamental to the way that symlinks work. With a 2 minute experiment you prove this to yourself:
Code:
root@black2:~# echo "I am a file" >real.file
root@black2:~# ln -s real.file fake.file
root@black2:~# mkdir destination
root@black2:~# cp fake.file destination
root@black2:~# ls -al *.file destination
lrwxrwxrwx 1 root root    9 Apr 17 19:17 fake.file -> real.file
-rw-r--r-- 1 root root   12 Apr 17 19:16 real.file

destination:
total 12
drwxr-xr-x  2 root root 4096 Apr 17 19:17 .
drwxr-xr-x 23 root root 4096 Apr 17 19:17 ..
-rw-r--r--  1 root root   12 Apr 17 19:17 fake.file


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 11:25 am 
Offline
Joined: Thu Jun 01, 2006 8:27 pm
Posts: 36
I moved files from my /myth/tv directory to another disk to free up space, then created a symlink to the new location from /myth/tv (using the same filename). Since /myth/pretty symlinks to /myth/tv, everything still works; you're just following two symlinks now instead of one.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 1:21 pm 
Offline
Joined: Wed Sep 13, 2006 2:14 pm
Posts: 20
tjc,

I assume that tzoom84 is looking to have the symlink point to the new location (destination/real.file) instead of the old location(real.file). I'm not sure there is a way to do that easily, unless you like writing shell scripts.

When I added a new HD to my system to increase storaged, I copied the /myth/tv files to the new drive, removed the /myth/tv directory, and then mounted the new drive as /myth/tv. Of course I stopped the myth and mysql applications first. Worked like a charm...

Chris


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 5:51 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
cfoxga wrote:
unless you like writing shell scripts.

Guilty as charged. As a matter of fact memory says I've already written this one and published it somewhere around here. Search for something by me that says something about moving a file and leaving a symlink in it's place. It may include a discussion about enabling the MythTV option to have deletion follow links... I'll look in my bag of scripts to see if I can find the name of it...


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu