From 462b92b7fa2dab64be8897cb30730e95c67d772c Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 19:58:58 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-rsync-backup2disk on Sat Sep 7 19:58:58 AEST 2024 --- .gitignore | 4 + Makefile | 21 ++++ README.md | 16 ++- contriborbase | 1 + createlinks | 18 +++ .../db/configuration/defaults/rsync/Exclude | 0 .../db/configuration/defaults/rsync/Include | 0 .../db/configuration/defaults/rsync/Mount | 1 + .../configuration/defaults/rsync/backupTime | 1 + .../configuration/defaults/rsync/reminderTime | 1 + .../db/configuration/defaults/rsync/status | 1 + .../db/configuration/defaults/rsync/type | 1 + root/etc/e-smith/events/actions/rsync-backup | 57 +++++++++ root/etc/e-smith/events/actions/rsync-restore | 43 +++++++ .../templates2expand/etc/rsync.exclude | 0 .../templates2expand/etc/rsync.include | 0 .../conf-rsync/templates2expand/etc/crontab | 0 .../templates2expand/etc/rsync.exclude | 0 .../templates2expand/etc/rsync.include | 0 .../locale/bg/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/da/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/de/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/el/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../en-us/etc/e-smith/web/functions/rsync | 110 ++++++++++++++++++ .../locale/es/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/et/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/fr/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/he/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/hu/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/id/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/it/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/ja/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/nb/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/nl/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/pl/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../pt-br/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/pt/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/ro/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/ru/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/sl/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/sv/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/th/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../locale/tr/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../zh-cn/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../zh-tw/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ root/etc/e-smith/templates/etc/crontab/rsync | 20 ++++ .../etc/rsync.exclude/10exclude_list | 9 ++ .../etc/rsync.exclude/template-begin | 1 + .../etc/rsync.include/10restore_list | 9 ++ .../etc/rsync.include/template-begin | 0 root/etc/e-smith/web/functions/rsync | 86 ++++++++++++++ .../e-smith/web/panels/manager/cgi-bin/rsync | 1 + root/etc/rsync.exclude | 0 root/etc/rsync.include | 0 .../esmith/FormMagick/Panel/rsync.pm | 94 +++++++++++++++ smeserver-rsync-backup2disk.spec | 101 ++++++++++++++++ 56 files changed, 2744 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100755 createlinks create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/Exclude create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/Include create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/Mount create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/backupTime create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/reminderTime create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/status create mode 100644 root/etc/e-smith/db/configuration/defaults/rsync/type create mode 100755 root/etc/e-smith/events/actions/rsync-backup create mode 100755 root/etc/e-smith/events/actions/rsync-restore create mode 100644 root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.exclude create mode 100644 root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.include create mode 100644 root/etc/e-smith/events/conf-rsync/templates2expand/etc/crontab create mode 100644 root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.exclude create mode 100644 root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.include create mode 100644 root/etc/e-smith/locale/bg/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/da/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/de/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/el/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/es/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/et/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/fr/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/he/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/hu/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/id/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/it/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/ja/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/nb/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/nl/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/pl/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/pt/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/ro/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/ru/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/sl/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/sv/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/th/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/tr/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/rsync create mode 100644 root/etc/e-smith/templates/etc/crontab/rsync create mode 100644 root/etc/e-smith/templates/etc/rsync.exclude/10exclude_list create mode 100644 root/etc/e-smith/templates/etc/rsync.exclude/template-begin create mode 100644 root/etc/e-smith/templates/etc/rsync.include/10restore_list create mode 100644 root/etc/e-smith/templates/etc/rsync.include/template-begin create mode 100755 root/etc/e-smith/web/functions/rsync create mode 120000 root/etc/e-smith/web/panels/manager/cgi-bin/rsync create mode 100644 root/etc/rsync.exclude create mode 100644 root/etc/rsync.include create mode 100644 root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/rsync.pm create mode 100644 smeserver-rsync-backup2disk.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d2a9563 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-rsync-backup2disk +# $Id: Makefile,v 1.1 2021/04/03 01:29:26 jpp Exp $ +NAME := smeserver-rsync-backup2disk +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 7f24130..67dc263 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-rsync-backup2disk +# smeserver-rsync-backup2disk -SMEServer Koozali developed git repo for smeserver-rsync-backup2disk smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-rsync-backup2disk smecontribs + +## Wiki +
https://wiki.koozali.org/Rsync-backup2disk + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-rsync-backup2disk&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100755 index 0000000..9e9eeb9 --- /dev/null +++ b/createlinks @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); +use File::Basename; +use File::Path; + +templates2events("/etc/crontab", qw(conf-rsync)); +templates2events("/etc/rsync.exclude", qw(bootstrap-console-save conf-rsync)); +templates2events("/etc/rsync.include", qw(bootstrap-console-save conf-rsync)); + +my $panel = "manager"; +panel_link("rsync", $panel); + +my $event ="smeserver-rsync-backup2disk-update"; +templates2events("/etc/crontab", $event); +templates2events("/etc/rsync.exclude", $event); +templates2events("/etc/rsync.include", $event); + diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/Exclude b/root/etc/e-smith/db/configuration/defaults/rsync/Exclude new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/Include b/root/etc/e-smith/db/configuration/defaults/rsync/Include new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/Mount b/root/etc/e-smith/db/configuration/defaults/rsync/Mount new file mode 100644 index 0000000..fe8f70f --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rsync/Mount @@ -0,0 +1 @@ +/media/usbdisk diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/backupTime b/root/etc/e-smith/db/configuration/defaults/rsync/backupTime new file mode 100644 index 0000000..50a6092 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rsync/backupTime @@ -0,0 +1 @@ +23:30 diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/reminderTime b/root/etc/e-smith/db/configuration/defaults/rsync/reminderTime new file mode 100644 index 0000000..d9fbe93 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rsync/reminderTime @@ -0,0 +1 @@ +14:00 diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/status b/root/etc/e-smith/db/configuration/defaults/rsync/status new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rsync/status @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/db/configuration/defaults/rsync/type b/root/etc/e-smith/db/configuration/defaults/rsync/type new file mode 100644 index 0000000..54ae0c7 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rsync/type @@ -0,0 +1 @@ +backupservice diff --git a/root/etc/e-smith/events/actions/rsync-backup b/root/etc/e-smith/events/actions/rsync-backup new file mode 100755 index 0000000..9852628 --- /dev/null +++ b/root/etc/e-smith/events/actions/rsync-backup @@ -0,0 +1,57 @@ +#!/bin/sh + +STATUS=$(/sbin/e-smith/config getprop rsync status) +if [ "$STATUS" != 'enabled' ] + then + exit 0 +fi + +# variables +STIME=$(/bin/date) +MOUNT=$(/sbin/e-smith/config getprop rsync Mount) +ID=$(/sbin/e-smith/config get SystemName).$(/sbin/e-smith/config get DomainName) +RSYNC="/usr/bin/rsync" +OPTIONS="-aur --delete --stats --force --files-from=/etc/rsync.include --exclude-from=/etc/rsync.exclude" + +# fix if /etc/smbpasswd from rsync.include is missing +if [ ! -e /etc/smbpasswd ] + then + /bin/touch /etc/smbpasswd +fi + +# release & mount destination +/bin/umount $MOUNT >/dev/null 2>&1 + +/bin/echo "Connecting to $MOUNT" +/bin/mount $MOUNT || exit 1 + +# check for valid ext3 +if [ ! -d $MOUNT/lost+found ] + then + /bin/echo "$MOUNT does not appear to be ext3 format!" + exit 2 +fi + +# create destination dirs +/bin/mkdir -p $MOUNT/$ID/rsync || exit 3 + +# execute pre-backup event +/bin/echo "Executing pre-backup event" +/sbin/e-smith/signal-event pre-backup || exit 4 + +# perform rsync backup +/bin/echo "Performing rsync to $MOUNT/$ID/rsync" +$RSYNC $OPTIONS / $MOUNT/$ID/rsync || exit 5 + +# execute post-backup event +/bin/echo "Executing post-backup event" +/sbin/e-smith/signal-event post-backup || exit 6 + +# dismount +/bin/echo "Dismounting $MOUNT" +/bin/umount -l $MOUNT & + +FTIME=$(/bin/date) +/bin/echo "" +/bin/echo "$STIME - backup started" +/bin/echo "$FTIME - backup finished" diff --git a/root/etc/e-smith/events/actions/rsync-restore b/root/etc/e-smith/events/actions/rsync-restore new file mode 100755 index 0000000..5b983ea --- /dev/null +++ b/root/etc/e-smith/events/actions/rsync-restore @@ -0,0 +1,43 @@ +#!/bin/sh + +STATUS=$(/sbin/e-smith/config getprop rsync status) +if [ "$STATUS" != 'enabled' ] + then + exit 0 +fi + +# variables +MOUNT=$(/sbin/e-smith/config getprop rsync Mount) +ID=$(/sbin/e-smith/config get SystemName).$(/sbin/e-smith/config get DomainName) + +# set config +/bin/echo "Enabling CopyFromDisk configuration" +/sbin/e-smith/db configuration setprop backup Program CopyFromDisk status enabled || exit 1 + +# release & mount destination +/bin/umount $MOUNT >/dev/null 2>&1 + +/bin/echo "Connecting to $MOUNT" +/bin/mount $MOUNT || exit 2 + +# check for valid backup +if [ ! -d $MOUNT/$ID/rsync ] + then + /bin/echo "$MOUNT/$ID/rsync does not exist!" + exit 3 +fi + +# execute pre-restore event +/bin/echo "Executing pre-restore event" +/sbin/e-smith/signal-event pre-restore || exit 4 + +# perform restore +/bin/echo "Performing restore from $MOUNT/$ID/rsync" +/bin/echo "Please be patient as this may take an extended time to complete" +/sbin/e-smith/signal-event restore-tape $MOUNT/$ID/rsync +/bin/echo "Restore complete" + +# execute post-upgrade ; reboot events +/bin/echo "Executing post-upgrade & reboot events" +/sbin/e-smith/signal-event post-upgrade || exit 5 +/sbin/e-smith/signal-event reboot diff --git a/root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.exclude b/root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.exclude new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.include b/root/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/rsync.include new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/events/conf-rsync/templates2expand/etc/crontab b/root/etc/e-smith/events/conf-rsync/templates2expand/etc/crontab new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.exclude b/root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.exclude new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.include b/root/etc/e-smith/events/conf-rsync/templates2expand/etc/rsync.include new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..862cdfc --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Включване/Изключване на нощно резервно копиране с rsync + + + + OPERATION_STATUS_REPORT + Информация за състоянието по функциониране + + + + FORM_DESC + Този метод за резервно копиране използва софтуерен пакет наречен rsync за да създаде копие на конфигурацията и данните на потребителите от сървъра, като ги слага на външен твърд диск всяка нощ. Първоначалното копиране ще съвпада по обем с текущия размер на данните. Следващите резервни копирания ще синхронизират данните и ще копират само промените, което ще направи времето за резервно копиране много ефективно. Този метод позволява да възстановявате конфигурация и потребителски данни лесно с използване на инструменти от командния ред. + + + + DESC_STATUS + Изберете дали искате да включите нощно резервно копиране с rsync + + + + LABEL_STATUS + Състояние + + + + DESC_INCLUDE + Въведете файл или директория за включване. По едно на ред. Изискват се пълните пътища. + + + + LABEL_INCLUDE + Включи + + + + DESC_EXCLUDE + Въведете файл или директория за изключване. По едно на ред. Изискват се пълните пътища. + + + + LABEL_EXCLUDE + Изключи + + + + DESC_MOUNT + Резервното копиране с rsync изисква използване на поддържани устройства, които трябва да се конфигурират ръчно и да са форматирани с ext3. Например, външен USB диск, монтиран в /media/usbdisk. Въведете точката на монтиране отдолу. + + + + LABEL_MOUNT + Монтиране + + + + DESC_REMINDER_TIME + Въведете времето, когато искате да получавате напомнящо съобщение за да включите външния диск във формат чч:мм. Оставете полето празно за да изключите. + + + + LABEL_REMINDER_TIME + Време за напомняне + + + + + DESC_BACKUP_TIME + Въведете времето, когато искате резервното копиране да се случи във формат чч:мм. + + + + LABEL_BACKUP_TIME + Час за резервно копие + + + + Update + Обновяване + + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..5577243 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Status rapport + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montering + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Indtast starttid for sikkerhedskopi i 24 timers format (tt:mm). + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Opdater + + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..f279d4c --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Statusbericht + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Geben Sie die Zeit, zu der der Sicherungsauftrag ausgeführt werden soll, im 24-Stunden-Format (hh:mm) an. ]]> + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Aktualisieren + + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..37c1e1d --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Αναφορά κατάστασης λειτουργίας + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Ενημέρωση + + + diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..73701e9 --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/rsync @@ -0,0 +1,110 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + + Operation status report + + + + + FORM_DESC + + 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. + + + + + DESC_STATUS + + Select whether you wish to enable nightly rsync backups + + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + + Enter any file or directories to include. One entry per line. Full path is required. + + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + + 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. Enter your mount point below. + + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + + Enter the time you would like a reminder message to be automatically e-mailed + to the administrator to attach your disk in 24 hr (hh:mm) format. + Leave blank to disable. + + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Update + + + diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..d69c6a5 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Estado de la operación + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Estado + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montar + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Introduzca la hora que usted desea para que se lleve a cabo este respaldo en el formato de 24 hr (hh:mm). + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Actualizar + + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..21a1afd --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Operatsiooni tulemus + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Olek + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Ühenda + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Sisesta kellaaeg millal see varundusprotsess peaks käivituma 24 tunni vormingus (tt.mm). + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Uuenda + + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..27a5b8b --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Activer / désactiver la sauvegarde Rsync nocturne + + + + OPERATION_STATUS_REPORT + Rapport d'état de l'opération + + + + FORM_DESC + Cette méthode de sauvegarde utilise un progiciel appelé rsync pour créer une copie de la configuration de votre serveur et des fichiers de données des utilisateurs, et la copie sur un disque dur local connecté chaque nuit. La sauvegarde initiale correspondra à la taille actuelle de vos données. Les sauvegardes suivantes synchroniseront vos données et ne copieront que les modifications, ce qui rendra votre temps de sauvegarde réel très efficace. Cette méthode vous permet de restaurer facilement vos fichiers de configuration et de données utilisateur à l'aide d'outils de ligne de commande. + + + + DESC_STATUS + Sélectionnez si vous souhaitez activer les sauvegardes rsync nocturnes + + + + LABEL_STATUS + État + + + + DESC_INCLUDE + Saisissez le ou les fichiers ou dossiers à inclure. Une entrée par ligne. Le chemin complet est requis. + + + + LABEL_INCLUDE + Inclure + + + + DESC_EXCLUDE + Saisissez le ou les fichiers ou dossiers à exclure. Une entrée par ligne. Le chemin complet est requis. + + + + LABEL_EXCLUDE + Exclure + + + + DESC_MOUNT + La sauvegarde rsync nécessite un périphérique pris en charge qui doit être configuré et formaté manuellement en ext3. Un exemple est un lecteur USB externe monté sur / media / usbdisk. Entrez votre point de montage ci-dessous. + + + + LABEL_MOUNT + Monter + + + + DESC_REMINDER_TIME + Saisissez l'heure à laquelle vous souhaitez qu'un message de rappel soit automatiquement envoyé par e-mail à l'administrateur pour joindre votre disque, au format 24 h (hh: mm). Laissez vide pour désactiver. + + + + LABEL_REMINDER_TIME + Heure de rappel journalier. + + + + + DESC_BACKUP_TIME + Saisissez lh'eure à laquelle vous voulez réaliser cette sauvegarde au format horaire 0-24 (hh:mm). + + + + LABEL_BACKUP_TIME + Heure de la sauvegarde journalière + + + + Update + Mettre à jour + + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..fc6b493 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Operation status report + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + מצב + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + עגון + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + עדכון + + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..83d0065 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Használati jelentés + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Állapot + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Csatlakoztatás + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Frissítés + + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..6a22672 --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Laporan status operasi + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Update + + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..50b488d --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Abilitare/disabilitare il backup rsync notturno + + + + OPERATION_STATUS_REPORT + Rapporto operazione + + + + FORM_DESC + Questo metodo di backup utilizza un pacchetto software chiamato rsync per creare una copia della configurazione del server e dei dati degli utenti, e trasferirli ogni notte su un disco rigido collegato. Il backup iniziale avra' la stessa dimensione dei dati attuali. I backup seguenti sincronizzeranno i dati e copieranno solo le variazioni, rendendo molto efficienti i tempi del backup. Questo metodo consente di ripristinare la configurazione e i dati degli utenti in maniera semplice utilizzando la riga di comando. + + + + DESC_STATUS + Selezionare se si desiderano attivare i backup notturni via rsync. + + + + LABEL_STATUS + Stato + + + + DESC_INCLUDE + Inserire eventuali files o directory da includere, uno per riga. E' richiesto di specificare l'intero percorso. + + + + LABEL_INCLUDE + Includere + + + + DESC_EXCLUDE + Inserire eventuali file o directory da escludere, uno per riga. E' richiesto di specificare l'intero percorso. + + + + LABEL_EXCLUDE + Escludere + + + + DESC_MOUNT + Il backup via rsync richiede un dispositivo supportato che sia stato manualmente configurato e formattato ext3. Un esempio e' un disco rigido USB esterno montato sotto la directory /media/usbdisk. Inserire qui sotto la directory sotto cui e' montato. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Inserire l'orario in formato 24h (hh:mm) in cui si desidera che un promemoria per collegare il disco venga automaticamente inviato via e-mail all'amministratore.Lasciare il campo vuoto per disabilitare. + + + + LABEL_REMINDER_TIME + Orario del promemoria + + + + + DESC_BACKUP_TIME + Inserire l'ora del backup in formato 24 ore (hh:mm). + + + + LABEL_BACKUP_TIME + Orario del backup + + + + Update + Aggiorna + + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..186f9a4 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Operation status report + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + 状態 + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + マウント + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + 更新 + + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..19b557d --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Statusrapport for operasjonen + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Monter + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Oppdater + + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..9fe19c2 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Operationeel status rapport + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Aankoppelen + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Voer de tijd in waarop u deze back-up wilt laten uitvoeren in 24 uurs formaat (uu:mm). + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Wijzigen + + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..836a7f2 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Raport o stanie procesu + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Stan + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Zamontuj + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Aktualizuj + + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..ae2c397 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Relatório de status da operação + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montar + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Digite o horário que você gostaria que este backup iniciasse no formato 24 horas (hh:mm) + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Atualizar + + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..f5dfcf2 --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Relarório de status de operação + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montar + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Digite o horário que você gostaria que este backup iniciasse no formato 24 horas (hh:mm) + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Atualizar + + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..c62d7e3 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Raport operațiune + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Stare + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montează + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Actualizează + + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..51b4721 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Данные о состоянии функционирования + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Состояние + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Монтирование + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Обновить + + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..cc1ef7d --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Porocilo o delovanju + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Posodobi + + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..f395025 --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + Statusrapport över operationerna + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Status + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Montera + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Ange tidpunkten då du önskar att backupen görs i 24-timmars format (hh:mm). + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Uppdatera + + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..1257102 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + รายงานสถานะการทำงาน + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + สถานะ + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Mount + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + บันทึกการแก้ไข + + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..d456246 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + İşlem durum raporu + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + Durum + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + Bağla + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + Enter the time you would like this backup to occur in 24 hr (hh:mm) format. + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + Güncelle + + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..10f6a2f --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + 启用/禁用 Rsync 夜间备份 + + + + OPERATION_STATUS_REPORT + 操作报告 + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + 状态 + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + 包含 + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + 排除 + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + 挂载 + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + 请输入备份进行的时间点(24小时 hh:mm)。 + + + + LABEL_BACKUP_TIME + 备份日期 + + + + Update + 更新 + + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/rsync b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/rsync new file mode 100644 index 0000000..b953910 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ + + + + + FORM_TITLE + Enable/Disable Nightly Rsync Backup + + + + OPERATION_STATUS_REPORT + 運作狀態回報 + + + + FORM_DESC + 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. + + + + DESC_STATUS + Select whether you wish to enable nightly rsync backups + + + + LABEL_STATUS + 狀態 + + + + DESC_INCLUDE + Enter any file or directories to include. One entry per line. Full path is required. + + + + LABEL_INCLUDE + Include + + + + DESC_EXCLUDE + Enter any file or directories to exclude. One entry per line. Full path is required. + + + + LABEL_EXCLUDE + Exclude + + + + DESC_MOUNT + 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. Enter your mount point below. + + + + LABEL_MOUNT + 掛載 + + + + DESC_REMINDER_TIME + Enter the time you would like a reminder message to be automatically e-mailed to the administrator to attach your disk in 24 hr (hh:mm) format. Leave blank to disable. + + + + LABEL_REMINDER_TIME + Reminder time of day + + + + + DESC_BACKUP_TIME + 請以24小時的格式(hh:mm)輸入欲備份的開始時間。 + + + + LABEL_BACKUP_TIME + Backup time of day + + + + Update + 更新 + + + diff --git a/root/etc/e-smith/templates/etc/crontab/rsync b/root/etc/e-smith/templates/etc/crontab/rsync new file mode 100644 index 0000000..e11d41c --- /dev/null +++ b/root/etc/e-smith/templates/etc/crontab/rsync @@ -0,0 +1,20 @@ +{ + return "# rsync disabled" + unless ${'rsync'}{status} eq 'enabled'; + + my $reminderTime = ${'rsync'}{reminderTime} || ''; + my $backupTime = ${'rsync'}{backupTime} || '23:30'; + my ($rhour, $rminute) = split (":", $reminderTime, -1) + unless $reminderTime eq ''; + my ($bhour, $bminute) = split (":", $backupTime, -1); + + # remove leading zeros from minutes + $rminute =~ s/00/0/ + unless $reminderTime eq ''; + $bminute =~ s/00/0/; + + $OUT .= "# rsync backup\n"; + $OUT .= "$rminute $rhour * * * root /bin/echo 'Remember to attach the rsync backup disk!'\n" + unless $reminderTime eq ''; + $OUT .= "$bminute $bhour * * * root /etc/e-smith/events/actions/rsync-backup\n"; +} diff --git a/root/etc/e-smith/templates/etc/rsync.exclude/10exclude_list b/root/etc/e-smith/templates/etc/rsync.exclude/10exclude_list new file mode 100644 index 0000000..de2456c --- /dev/null +++ b/root/etc/e-smith/templates/etc/rsync.exclude/10exclude_list @@ -0,0 +1,9 @@ +{ + $Exclude = ${'rsync'}{"Exclude"} || ""; + @Exclude = sort(split(/,/, "$Exclude")); + + foreach $Exclude (@Exclude) + { + $OUT .= "$Exclude\n"; + } +} \ No newline at end of file diff --git a/root/etc/e-smith/templates/etc/rsync.exclude/template-begin b/root/etc/e-smith/templates/etc/rsync.exclude/template-begin new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/root/etc/e-smith/templates/etc/rsync.exclude/template-begin @@ -0,0 +1 @@ + diff --git a/root/etc/e-smith/templates/etc/rsync.include/10restore_list b/root/etc/e-smith/templates/etc/rsync.include/10restore_list new file mode 100644 index 0000000..f661bbe --- /dev/null +++ b/root/etc/e-smith/templates/etc/rsync.include/10restore_list @@ -0,0 +1,9 @@ +{ + $Include = ${'rsync'}{"Include"} || ""; + @Include = sort(split(/,/, "$Include")); + + foreach $Include (@Include) + { + $OUT .= "$Include\n"; + } +} \ No newline at end of file diff --git a/root/etc/e-smith/templates/etc/rsync.include/template-begin b/root/etc/e-smith/templates/etc/rsync.include/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/web/functions/rsync b/root/etc/e-smith/web/functions/rsync new file mode 100755 index 0000000..9c3143c --- /dev/null +++ b/root/etc/e-smith/web/functions/rsync @@ -0,0 +1,86 @@ +#!/usr/bin/perl -wT +# vim: ft=xml: + +#---------------------------------------------------------------------- +# heading : Backup +# description : Rsync +# navigation : 1000 1000 +#---------------------------------------------------------------------- + +use strict; +use warnings; + +use esmith::FormMagick::Panel::rsync; + +my $f = esmith::FormMagick::Panel::rsync->new(); +$f->display(); + +__DATA__ +
+ + + + FORM_DESC + + + + DESC_STATUS + + + + + DESC_INCLUDE + + + + + DESC_EXCLUDE + + + + + DESC_MOUNT + + + + + DESC_REMINDER_TIME + + + + + DESC_BACKUP_TIME + + + + +
diff --git a/root/etc/e-smith/web/panels/manager/cgi-bin/rsync b/root/etc/e-smith/web/panels/manager/cgi-bin/rsync new file mode 120000 index 0000000..f040f98 --- /dev/null +++ b/root/etc/e-smith/web/panels/manager/cgi-bin/rsync @@ -0,0 +1 @@ +../../../functions/rsync \ No newline at end of file diff --git a/root/etc/rsync.exclude b/root/etc/rsync.exclude new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/rsync.include b/root/etc/rsync.include new file mode 100644 index 0000000..e69de29 diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/rsync.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/rsync.pm new file mode 100644 index 0000000..3960110 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/rsync.pm @@ -0,0 +1,94 @@ +#!/usr/bin/perl -w +package esmith::FormMagick::Panel::rsync; + +use strict; +use warnings; +use esmith::ConfigDB; +use esmith::FormMagick; + +our @ISA = qw(esmith::FormMagick Exporter); + +our @EXPORT = qw(); + +our $VERSION = sprintf '%d.%03d', q$Revision: 1.1 $ =~ /: (\d+).(\d+)/; + +our $db = esmith::ConfigDB->open or die "Couldn't open ConfigDB\n"; + +sub get_status +{ + return $db->get_prop("rsync", "status"); +} + +sub get_include +{ + my $self = shift; + my $q = $self->{cgi}; + + my $Include = $db->get_prop("rsync", "Include"); + + if ("$Include" eq "") + { + use esmith::Backup; + my $backup = esmith::Backup->new(); + return join "\n", map { "/" . $_ } sort($backup->restore_list); + } + else + { + my @Include = sort(split(/,/, $Include)); + return join "\n", map { "$_" } @Include; + } +} + +sub get_exclude +{ + my $self = shift; + my $q = $self->{cgi}; + + my $Exclude = $db->get_prop("rsync", "Exclude"); + my @Exclude = sort(split(/,/, $Exclude)); + + return join "\n", map { "$_" } @Exclude; +} + +sub get_mount +{ + return $db->get_prop("rsync", "Mount"); +} + +sub get_reminderTime +{ + return $db->get_prop("rsync", "reminderTime"); +} + +sub get_backupTime +{ + return $db->get_prop("rsync", "backupTime"); +} + +sub change_settings +{ + my $fm = shift; + my $q = $fm->{'cgi'}; + + $db->set_prop('rsync', 'status', $q->param("status")); + $db->set_prop('rsync', 'Mount', $q->param("mount")); + $db->set_prop('rsync', 'reminderTime', $q->param("remindertime")); + $db->set_prop('rsync', 'backupTime', $q->param("backuptime")); + + my $Include = $q->param("include"); + $Include =~ s/\r\n/,/g; + $db->set_prop('rsync', 'Include', "$Include"); + + my $Exclude = $q->param("exclude"); + $Exclude =~ s/\r\n/,/g; + $db->set_prop('rsync', 'Exclude', "$Exclude"); + + unless ( system ("/sbin/e-smith/signal-event", "conf-rsync") == 0 ) + { + $fm->error('ERROR_UPDATING'); + return undef; + } + + $fm->success('SUCCESS'); +} +1; diff --git a/smeserver-rsync-backup2disk.spec b/smeserver-rsync-backup2disk.spec new file mode 100644 index 0000000..4d20800 --- /dev/null +++ b/smeserver-rsync-backup2disk.spec @@ -0,0 +1,101 @@ +Summary: Rsync backup for SME Server +%define name smeserver-rsync-backup2disk +Name: %{name} +%define version 0.0.2 +%define release 5 +Version: %{version} +Release: %{release} +License: GPL +Group: SME/addon +Source: %{name}-%{version}.tar.xz +Packager: Darrell May +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +BuildArchitectures: noarch +Requires: smeserver-release => 10.0 +BuildRequires: e-smith-devtools >= 1.13.1-03 + +%description +SME Server implementation of rsync to perform nightly backup to a mounted drive. + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 0.0.2-5.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Sep 06 2024 Terry Fage 0.0.2-4.sme +- apply locale smeserver-rsync-backup2disk-0.0.2-locale-2024-09-06.patch + +* Wed Sep 08 2021 Terry Fage 0.0.2-3.sme +- apply locale 2021-09-08 patch + +* Mon Aug 23 2021 Terry Fage 0.0.2-2.sme +- apply locale 2021-08-23 patch + +* Sat Apr 03 2021 Jean-Philippe Pialasse 0.0.2-1.sme +- import to SME10 +- change name from smeserver-rsync to smeserver-rsync-backup2disk +- create update event +- move perl module to new path +- cleanup spec + +* Fri Nov 03 2006 Darrell May +- added support for no reminder e-mail +- [0.0.1-a6dmay] + +* Thu Nov 02 2006 Darrell May +- numerous updates +- [0.0.1-a5dmay] + +* Tue Oct 17 2006 Darrell May +- remove exit from restore-tape line in rsync-restore +- [0.0.1-a4dmay] + +* Tue Oct 17 2006 Darrell May +- updated FM panel code +- db changes backupTime reminderTime +- added checks for ext3 format +- [0.0.1-a3dmay] + +* Tue Oct 17 2006 Darrell May +- added rsync-restore action +- [0.0.1-a2dmay] + +* Mon Oct 16 2006 Darrell May +- added basic server-manager panel +- [0.0.1-a1dmay] + +* Mon Oct 16 2006 Darrell May +- initial internal alpha release +- [0.0.1-a0dmay] + +%prep +%setup + +rm root/rsync + +%build +/usr/bin/perl createlinks + +%install +/bin/rm -rf $RPM_BUILD_ROOT + +(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) +/bin/rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +%files -f %{name}-%{version}-filelist + +%defattr(-,root,root) + +%clean +/bin/rm -rf $RPM_BUILD_ROOT + +%pre + +%post + +%preun + +%postun