Backup or folder duplication

Roland
Posts: 1
Joined: Wed Dec 10, 2008 2:52 am

Backup or folder duplication

Postby Roland » Wed Dec 10, 2008 3:32 am

Hello,

I liked the product so far, but there are still some questions I have.
Is there a possibility that data on a Server harddrive is automatically duplicated to another drive.
I can imagine that when a hardrive fails and you have to change it with a new one, that you want to resque the important data on it.
Or do you have to worry about RAID configurations before you install Amahi HDA.
I could chose for SATA Raid configuration but what about my USB Harddrive's?
Or can I schedule backups for Music, Books to another Harddrive or USB Harddrive?

Kind Regards

Roland Roos
Amsterdam, The Netherlands
Kind Regards,

Roland Roos

gmw
Posts: 104
Joined: Tue Dec 09, 2008 12:42 pm
Location: Northern California
Contact:

Re: Backup or folder duplication

Postby gmw » Thu Dec 11, 2008 11:36 am

The options you suggest are all valid.
At this stage there is no automatic backup of the files you put on the HDA.
I believe there are many tools to facilitate this (I personally use a RAID configuration). :geek:

alfnoid
Posts: 1
Joined: Fri Feb 13, 2009 7:10 pm

Re: Backup or folder duplication

Postby alfnoid » Fri Feb 13, 2009 7:12 pm

This is the only thing keeping me leaning towards Windows home server.
An automagic copy of all files from one physical disk to another physical disk would be awesome to see!!

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Backup or folder duplication

Postby cpg » Sat Feb 14, 2009 5:10 am

This is the only thing keeping me leaning towards Windows home server.
An automagic copy of all files from one physical disk to another physical disk would be awesome to see!!
maybe someone (you?) can integrate rsnapshot!? :)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Backup or folder duplication

Postby rgmhtt » Tue Mar 17, 2009 6:59 am

It would not be all that difficult to use rsync locally and run it nightly via cron.

I even think the rsync man page has all the basics for this!

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Backup or folder duplication

Postby moredruid » Tue Mar 17, 2009 12:21 pm

uhm, lots of options, of which 2 are very easy.
1 - hardware based (your mainboard might not support this) redundancy: RAID mirroring. The RAID controller will mirror all your data. This halves your disk space and works best with 2 identical drives. How does it halve your diskspace? The OS will see only 1 drive and the RAID controller commits each write to both drives (duplicate). Usually your OS sees both drives, sometimes as 1 volume, sometimes as 2 disks - this depends on driver support and other things.

2 - software based redundancy: you schedule a dd in cron. dd (disk duplicate) is a very powerful command. the PBA functionality of Amahi uses this over the network if I'm not mistaken.
Say you have 2 drives, 1 with your data on it that you want to copy to a 2nd drive.
you can then issue the following command to make an exact duplicate of the first disk to the second disk:

Code: Select all

dd if=/dev/sda of=/dev/sdb
NOTE: don't copy this without thinking! make sure that you know what stuff is on which drive first. linux usually counts like this: /dev/sda (1st drive) /dev/sdb (2nd drive) /dev/sdc (3rd drive) etc.
numbers behind the drive names indicate partitions. So the 2nd partition on your 3rd disk would look like this: /dev/sdc2

If you're using LVM your partitioning may look very different, but a raw (byte for byte) copy tool like dd will ignore that and just copy what's on the disk.

Oh, and before I forget: after you make your first backup TEST it! I don't know how many people have faithfully backed up their systems without checking if restore works... and when a drive crashes they note that their backup is corrupted. You don't want to get burned that way, trust me. schedule a weekly full backup if you go the software way and do a restore every once in a while (say monthly or every 2 months).
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

nemolomen
Posts: 36
Joined: Sat Dec 13, 2008 5:46 pm
Location: Vermont

Re: Backup or folder duplication

Postby nemolomen » Mon Mar 23, 2009 3:47 am

I've been using fwbackups (installed from the F9 repository) to backup my shares along with /etc, /home and /var. Specifically, I'm using the rsync option, which makes a duplicate of the file system structure on another drive.

The only downside is that it needs an X desktop to use it, so to set it up, make changes or view the log, I need to open a VNC session, which isn't really a big deal.

It is written in python, which makes it "cross-platform" but I haven't tried using it on another OS yet.

You can find more info here: http://www.diffingo.com/oss/fwbackups
nemolomen

My HDA (3rd): ECS A770M-A, Phenom X3 2.4 GHz, 2 GB DDR2 800MHz, / 40 GB, /home 80 GB, data 1TB, 500GB, 320GB

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Backup or folder duplication

Postby moredruid » Mon Mar 23, 2009 12:06 pm

nice, and thanks for sharing your experience!
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
relrobber
Posts: 72
Joined: Wed Dec 17, 2008 10:01 pm
Location: Searcy, AR
Contact:

Re: Backup or folder duplication

Postby relrobber » Sun Apr 05, 2009 10:33 pm

rsync is better to use for regular backups than dd because it only copies the changes to files, which means it takes far less time (after the initial backup). here is a link w/ alot of info on using rsync as an automated backup tool: http://www.mikerubel.org/computers/rsync_snapshots/
Home HDA: Sony VAIO PCV-RX560, 1.7GHz P4, 320MB RAM

Managed HDA: 512MB RAM

ipdemons
Posts: 25
Joined: Wed Apr 08, 2009 1:19 pm

Re: Backup or folder duplication

Postby ipdemons » Wed Apr 08, 2009 1:22 pm

I think fwbackups is a great solution to this much needed problem. I've installed it and am having trouble getting to to run at login. I've tried adding it in the System > Personal > sessions > startup programs menu, as well ass adding it to rc.local, but when I login as root, it won't autostart. I really need it to start automatically after boot/login. Does anyone know how I can accomplish this?

Who is online

Users browsing this forum: No registered users and 17 guests