LinHES Forums
http://forums.linhes.org/

Moving Database to New Computer
http://forums.linhes.org/viewtopic.php?f=14&t=15119
Page 1 of 1

Author:  whitlmr [ Fri May 04, 2007 12:34 pm ]
Post subject:  Moving Database to New Computer

I just built a new mythbox and I wanted to transfer my database (I don't care about the recordings).

So I did the backup function, copied the /myth/backup directory to /myth/backup on the new system and did restore on the new system.

All my recordings are listed (obviously they won't work because I didnt' copy the files) - BUT when I go to my upcoming recordings list and previously recorded list, nothing is there.

Did I miss a step?

Thanks!

Author:  tjc [ Fri May 04, 2007 5:12 pm ]
Post subject: 

Yes. You need to copy the actual content files. It's easiest just to copy the whole /myth tree over. Be sure to do it in such a way as to preserve the correct ownerships and permissions. Something like rsync for remote access or cp -a for local mounts should do the trick. See the man pages for more.

Author:  whitlmr [ Sun May 06, 2007 9:41 am ]
Post subject: 

Thanks for the help, I used

Code:
rsync -avz 192.168.2.42:/myth/ /myth


Where 192.168.2.42 is the IP of my old myth machine and I executed the command as root on the new mythbox. Everything worked like a charm. I did have to go in and delete my capture cards and re-add them to get my upcoming recordings to work.

Author:  tjc [ Sun May 06, 2007 10:06 am ]
Post subject: 

Make sure you didn't end up with /myth/myth on the target... To copy /myth onto my backup drive I use:
Code:
/usr/bin/rsync -av --delete /myth /backup

Which produces /backup/myth Ah... I see, you used the trailing slash variation... Never mind...

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/