Author Topic: All user data on disk B  (Read 6862 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
All user data on disk B
« on: December 24, 2011, 05:45:31 pm »
Hey,

I've arranged my system so that i've got a disk of 320GB for my OS (linuxmce), and a disk of 1TB for all data.
What's the best way so all data is arriving on disk B?

Reason for this is to split my data from my system. Like this, i can take a complete images (without any user data) of disk A.
And later on, i would like to add a third disk of 1TB so i can mirror disk B.

Suggestions, tips, help is more then welcome!!!
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: All user data on disk B
« Reply #1 on: December 24, 2011, 05:56:54 pm »
Quote
What's the best way so all data is arriving on disk B?

Simple..... make sure it always has more free space than your os drive.

Linuxmce is smart that way.



HTH

Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: All user data on disk B
« Reply #2 on: December 24, 2011, 06:45:40 pm »
the only component that uses that strategy is mythtv, and you can force it to use a specific drive when you create recording profiles if you want.
otherwise when ripping a disc, you tell it where to save.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: All user data on disk B
« Reply #3 on: December 24, 2011, 07:01:11 pm »
True, but Orbiter's File/Save screen will always ask for the disk with the most free and use that.

-Thom

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #4 on: December 26, 2011, 10:18:20 am »
Hmmm, not sure if i like that. :'(

This means that when my 1 TB disk has fe 75% in use, he'll start to use the primary disk (os)? Regarding he still has 250 GB free?

Is there a way to change this? So that my 1TB is always the primary disk for data? I'm just a bit afraid that after a while, i'll not be aware where my data is located. Some on disk A, some on disk B.  So if i need to backup stuff (os or data), i need to backup each time everytime?

My idea is for the future:
  • Data backup each day (mirroring, nightly copy, to define...)
  • Config backup each week (dump db's, configfiles...)
  • OS backup each month (or important changes)

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: All user data on disk B
« Reply #5 on: December 26, 2011, 11:13:32 am »
brononi,

backup should not be an issue, if you backup /home and don't exclude softlink'd stuff.

And the Orbiter knows where your files are, so if you look through your media library using any sort order BUT filenames, you should be fine.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #6 on: December 26, 2011, 11:34:29 am »
Great,

So only /home to backup all my data?
I will start looking for the best way to backup this to a third disk... Some time ago, i played around with rdiff-backup. Maybe time to put it in place. ;)


Rest only linuxMCE itself. But maybe i start best a new thread for that...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: All user data on disk B
« Reply #7 on: December 26, 2011, 01:13:37 pm »
So only /home to backup all my data?

Backing up /home will backup all of your media, if your backup strategy follows through on symlinks. Backing up the configuration is done using a different script, as outlined in the other thread.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #8 on: December 26, 2011, 01:57:19 pm »
Thanks,

Rdiff-backup is covering symbolic links. So this should do the trick.


ps would be nice to have a complete backup system integrated in linuxmce, no?
One where you can define what/where/when/how to backup... Maybe for the next release?   ;)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: All user data on disk B
« Reply #9 on: December 26, 2011, 05:06:40 pm »
brononi,

feel free to architecture one, and implement it. After doing it, create a trac ticket and attach a feature patch.

Thanks in advance.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #10 on: December 27, 2011, 09:18:23 am »
feel free to architecture one, and implement it. After doing it, create a trac ticket and attach a feature patch.

Love to do it. If i knew how.  :(

Any guidelines/howto's around that i can use for this?
I personally don't have any clue how i could do this. I suppose it's not enough with just installing rdiff and write a short manual... :$
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: All user data on disk B
« Reply #11 on: December 27, 2011, 12:41:05 pm »
Well, do all the steps that are needed, create needed configuration files, put your steps into a shell script (a regular text file you can execute [look at any of the .sh files in /usr/pluto/bin]). The most simple script looks like
Code: [Select]
#!/bin/bash
echo We start a backup
/usr/pluto/bin/PlutoRestorePoint --backup

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #12 on: December 27, 2011, 01:00:48 pm »
Well basiclly, this is it (an old manual i wrote for myself):

Installation of rdiff-backup
Code: [Select]
sudo apt-get install rdiff-backup
Create a backup folder (can be also remote NAS drive, external disk...). You need to do this only once. Replace everything after 'backups/' with the stuff you want (your home folder, your data folders, your...).
Code: [Select]
sudo mkdir /backups
sudo mkdir /backups/home/me
sudo mkdir /backups/home/he
sudo mkdir /backups/home/she
sudo mkdir /backups/web

Put following into a script (fe /scripts/backupData.sh)
Code: [Select]
sudo rdiff-backup /home/me /backups/home/me
sudo rdiff-backup /home/he /backups/home/he
sudo rdiff-backup /home/she /backups/home/she
sudo rdiff-backup /var/www/html /backups/web

Run now the script, you can it also put in your cron...

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: All user data on disk B
« Reply #13 on: December 27, 2011, 01:06:26 pm »

But isn't this very limited to my configuration?
I suggest that we put something in the field that all users can easily adapt for their needs (sources, destinations, timeframes...).

I've just noticed that several 'GUI's' exist for rdiff.
More info: http://wiki.rdiff-backup.org/wiki/index.php/GraphicalUserInterfaces#Web-based

I don't know if we can implement something like this?
Or is this a lot of manipulation on the current webmin? I don't have a clue about this. I'm happy to put some time into it. If I now how/when/where...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: All user data on disk B
« Reply #14 on: December 27, 2011, 01:52:58 pm »
Look into the existing shell scripts in /usr/pluto/bin, google for bash advanced, and learn a bit of bash till new years eve :) You will be surprised what YOU can do.