arcadiarhod
Posts: 3
Joined: Sat Apr 06, 2013 11:51 am

Backup or mirror a hard drive

Sat Apr 06, 2013 12:11 pm

Hi Pi Board,

Long time reader first time poster.

I have two pi's running at the moment one is a webserver and the other is a raspbmc. Both have two 2tb hard drives on USB attached.

What I want to do is run one hard drive as a main and the other as a backup/mirror drive so I have the same data on both. Doesn't necessarily have to be the whole drive, maybe even select folders. I want to do it over the network. Is there a command or software I can install to automate or backup to the other drive over the network?

I've tried looking but haven't found too much I can use. Not sure if this was the right sub forum to put this in.

I have tried to set one drive up on my webserver and just have it as a smb share but not having much luck with that.

Just wondering if there are any suggestions. Thanks.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Backup or mirror a hard drive

Sat Apr 06, 2013 1:11 pm

The rsync package and command are good for manually backing up one disk area on one system to another area and system. It compares files on the source system and just updates the changed files on the destination. It can work through ssh or using it's own protocol.

There are lots of options for it, which can be confusing at first, but the man page does also give several examples of usage.

arcadiarhod
Posts: 3
Joined: Sat Apr 06, 2013 11:51 am

Re: Backup or mirror a hard drive

Sat Apr 06, 2013 11:55 pm

Awesome thank you. I will check that out! :)

Return to “General discussion”