Koozali.org: home of the SME Server

[alpha] smeserver-rsync

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
[alpha] smeserver-rsync
« on: October 17, 2006, 10:07:34 PM »
[ALPHA] For non production testing only. Highly experimental! [ALPHA]

Backup > Rsync
   This backup method uses a software package called rsync to create a copy of your server configuration and user data files, and copies it to an attached local hard drive every night. The initial backup will match your current data size. Subsequent backups will synchronize your data and only copy changes which will make your actual backup time very efficient. This method allows you to restore your configuration and user data files easily using command-line tools.

The rsync backup requires a supported device that must be manually configured and formatted ext3. One example is an external USB drive mounted on /media/usbdisk.

Available in my contrib area as soon as mirrors sync:

http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/testing/smeserver-rsync/smeserver-rsync-0.0.1-a4dmay.noarch.rpm

You configure the automatic nightly backup via the server-manager panel. Once configured you may launch a manual backup using this command:

/etc/e-smith/events/actions/rsync-backup

You may repeat the above command as often as you want to see the benefit of backup synchronizations.

Simple restore requests are handled from the command-line. Mount your drive and to go to $MOUNT/$ID/rsync/path... and restore at your discretion. A full disaster recovery restore is scripted and automated. To simulate a server failure and perform a disaster recovery restore you would take these steps on your test server:

1) perform a fresh install of SME
2) configure, add users, ibays, e-mail
3) attach and configure your local usb drive formatting ext3
4) install smeserver-rsync & configure via the server-manager
5) perform a manual backup(s) via /etc/e-smith/events/actions/rsync-backup
6) perform a fresh resintall
7) install smeserver-rsync & configure via the server-manager
8) perform a manual disaster recovery restore via  /etc/e-smith/events/actions/rsync-restore
9) test and report your results

Darrell

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
[alpha] smeserver-rsync
« Reply #1 on: October 18, 2006, 11:37:56 PM »
I did say this was an alpha release and highly experimental :D

I'm now experimenting with Gordon's rdiff-backup contrib and working to add a basic panel onto his contrib. I've recalled my contrib and removed it from my contribs area.

Darrell

Offline piran

  • ****
  • 502
  • +0/-0
[alpha] smeserver-rsync
« Reply #2 on: October 19, 2006, 09:08:46 AM »
Quote from: "dmay"
...working to add a basic panel onto his contrib.

Longer slots (for e-smith-long ibay mount paths) ;~)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
[alpha] smeserver-rsync
« Reply #3 on: November 02, 2006, 11:28:39 PM »
As per this post:

http://forums.contribs.org/index.php?topic=34320.0

I'm back to working with smeserver-rsync. Latest build will appear as soon as mirrors sync here:

http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/testing/smeserver-rsync
smeserver-rsync-0.0.1-a5dmay.noarch.rpm

Darrell

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
[alpha] smeserver-rsync
« Reply #4 on: November 03, 2006, 08:53:57 PM »
Latest build will appear as soon as mirrors sync here:

http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/testing/smeserver-rsync
smeserver-rsync-0.0.1-a6dmay.noarch.rpm

# rpm -qp --changelog smeserver-rsync-0.0.1-a6dmay.noarch.rpm
* Fri Nov 03 2006 Darrell May <dmay@myezserver.com>
- added support for no reminder e-mail
- [0.0.1-a6dmay]

Darrell

Offline psoren

  • *
  • 371
  • +0/-0
[alpha] smeserver-rsync
« Reply #5 on: December 18, 2006, 02:06:49 PM »
Hi Darrell

I am testing out your smeserver-rsync-0.0.1-a6dmay.noarch.rpm.

It backs up OK, but i can not get the exclude part to work.

I have tried the following:

/home/e-smith/files/ibays/bjarne-bu
/home/e-smith/files/ibays/bjarne-bu/
/home/e-smith/files/ibays/bjarne-bu/*

I want to exclude that whole dir (and a few more).
I'm backing up to a USB drive.

I had the same trouble with rdiff.

Will there be an option to "backup now" ?

Per

Offline del

  • *
  • 765
  • +0/-0
[alpha] smeserver-rsync
« Reply #6 on: December 20, 2006, 04:51:08 AM »
Hi Darrell,

Can this be used to back up to another server over SSH rather than a USB disk? Thanks.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline Elliott

  • ***
  • 150
  • +0/-0
[alpha] smeserver-rsync
« Reply #7 on: February 01, 2007, 06:58:31 PM »
I'm looking forward to developments on this contrib as I'm currently running rsync scripts of my own and would love to see the functionality built into the panel.

-E
Elliott

wolkje

[alpha] smeserver-rsync
« Reply #8 on: July 07, 2007, 10:39:06 AM »
Hello, This is a very nice script. I'm wondering of I can use it to rsync to a other rsync server. Is this posible?

Offline ronaldson40

  • ***
  • 96
  • +0/-0
[alpha] smeserver-rsync
« Reply #9 on: July 07, 2007, 11:34:34 AM »
Hi

How is this different from DAR?

Offline gizzmo2k1

  • *
  • 33
  • +0/-0
    • 7 Fifty-Two
[alpha] smeserver-rsync
« Reply #10 on: July 09, 2007, 11:20:11 PM »
It differs from DAR in that rsync is a straight copy, no compression.
............Gizzmo...............
SME 7.2 / P4 2.6Ghz / 320GB SATA / 2GB RAM