axelsvag
May 20th, 2008, 03:54 AM
I have tried to read all fantastic information on this forum and on all other stuff I can find around to understand the backup procedures before a fresh install. But all these tutorials always lack some small bit of information. Maybe anyone here can give me and probably others this information.
When I look at this info found at http://www.mythtv.org/wiki/index.php/User_Manual:Periodic_Maintenance
$ mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql
and $ mysql -u root
mysql>create database mythconverg;
mysql>exit
$ mysql -u mythtv -pmythtv mythconverg < mythtv_backup.sql
I get three questions
1. Do I have to be logged on as root or is it enough to use the sudo?
2. Where is the file stored?
3. If I use an external usb harddrive to store the database how should I do then
After the database is backuped I have to backup the actual recordings, videos, music and pictures. Is it enough to just make a copy of the folders in var/lib/mythtv folders? And after the fresh install is made, is it enough to just put the folders back? Does the backend find the files with correct database info?
Am I on the right track or have I misunderstood something here?
When I look at this info found at http://www.mythtv.org/wiki/index.php/User_Manual:Periodic_Maintenance
$ mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql
and $ mysql -u root
mysql>create database mythconverg;
mysql>exit
$ mysql -u mythtv -pmythtv mythconverg < mythtv_backup.sql
I get three questions
1. Do I have to be logged on as root or is it enough to use the sudo?
2. Where is the file stored?
3. If I use an external usb harddrive to store the database how should I do then
After the database is backuped I have to backup the actual recordings, videos, music and pictures. Is it enough to just make a copy of the folders in var/lib/mythtv folders? And after the fresh install is made, is it enough to just put the folders back? Does the backend find the files with correct database info?
Am I on the right track or have I misunderstood something here?