KNOWLEDGE BASE

Knowledge Base
1Backup
Acronis
Antivirus
Email
Firewall
GFI Software
Mail
Monitoring
N-Able
Sicurezza
TSPlus
Diventa Autore per CoreTech | Scopri di più
× Non sei ancora nostro cliente 1Backup? Diventa Partner CoreTech e visita il nostro configuratore prezzi

1Backup – Come pianificare i job su server con hostname identici

Questo articolo spiega come risolvere il problema delle pianificazioni dei job di 1Backup su server che hanno lo stesso hostname. La logica di funzionamento di questo workaround è di non utilizzare lo schedulatore di 1Backup ma utilizzare quello di Windows.

Installare l’agente di 1Backup sul server su cui si vuole attivare il backup in Cloud.

Eseguire l’installazione dell’agente seguendo la normale procedura.

Creare il BackupSet come di consueto, impostando anche la pianificazione:

1BackupHostname1

Terminata la procedura, collegarsi alla console web di 1Backup e selezionare il BackupSet appena creato:

1BackupHostname2

Cancellare la pianificazione relativa al BackupSet cliccando su Remove e poi su Update:

1BackupHostname3

Questa dovrà essere la configurazione del BackupSet al termine delle modifiche sopra descritte:

1BackupHostname4

Per pianificare l’esecuzione del BackupSet, sarà necessario utilizzare l’Utilità di Pianificazione di Microsoft, presente su tutti i server e client.

Collegarsi al server con un’utenza che abbia privilegi amministrativi ed editare con notepad il file RunBackupSet.batche si trova in %1Backup Home%\bin\RunBackupSet.bat

Il file va editato solo nella prima parte, seguendo le istruzioni come segue:

@ECHO OFF
REM ##################  RunBackupSet.bat  ######################################
REM # You can use this batch to run any of your backup sets from the           #
REM # command line. Just customize the "User Defined Section" below with your  #
REM # values for your backup action.                                           #
REM ############################################################################

REM ####################  Start: User Defined Section  #########################

REM -------------------------------  BACKUP_SET  -------------------------------
REM | The name or ID of the backup set that you want to run                    |
REM | If backup set name is not in English, please use BackupSetID             |
REM | e.g. SET BACKUP_SET="1119083740107"                                      |
REM |  or  SET BACKUP_SET="FileBackupSet-1"                                    |
REM |                                                                          |
REM | You can leave this parameter blank if you are using ACB or have only 1   |
REM | backup set.                                                              |
REM ----------------------------------------------------------------------------
SET BACKUP_SET="BackupSet"

Inserire qui il nome del Backup Set creato, che nel nostro articolo è: BackupSet

REM -------------------------------  BACKUP_TYPE  ------------------------------
REM | Set backup type. You don't need to change this if you are backing up a   |
REM | file backup set.                                                         |
REM | Options available: FILE/DATABASE/DIFFERENTIAL/LOG                        |
REM | e.g. SET BACKUP_TYPE="FILE"          for file backup                     |
REM |  or  SET BACKUP_TYPE="DATABASE"      for Full database backup            |
REM |  or  SET BACKUP_TYPE="DIFFERENTIAL"  for Differential database backup    |
REM |  or  SET BACKUP_TYPE="LOG"           for Log database backup             |
REM |                                                                          |
REM | For MSExchange 2010 BackupSet                                            |
REM | e.g. SET BACKUP_TYPE="DATABASE"      for Full database backup            |
REM |  or  SET BACKUP_TYPE="DIFFERENTIAL"  for Differential database backup    |
REM |  or  SET BACKUP_TYPE="LOG"           for Incremental database backup     |
REM |  or  SET BACKUP_TYPE="COPY"          for Copy database backup 	       |
REM ----------------------------------------------------------------------------
SET BACKUP_TYPE="FILE"

Inserire qui il tipo di Backup creato. Nel nostro articolo abbiamo creato un Backup di File

REM ------------------------------  SETTING_HOME  ------------------------------
REM | Directory to your setting home. Default to                               |
REM | "C:\Documents and Settings\USER\.obm" when not set.                      |
REM | e.g. SET SETTING_HOME="C:\Documents and Settings\John\.obm"              |
REM ----------------------------------------------------------------------------
SET SETTING_HOME="C:\Users\administrator\.obm"

Inserire il path dell’account che gestisce la directory temporanea per il backup creato. Es: utente administrator.

REM -------------------------------  DELTA_MODE  -------------------------------
REM | Set In-File Delta mode.                                                  |
REM | Options available: Incremental/Differential/Full (I/D/F)                 |
REM | e.g. SET DELTA_MODE="I"   for Incremental In-file delta backup           |
REM |  or  SET DELTA_MODE="D"   for Differential In-file delta backup          |
REM |  or  SET DELTA_MODE="F"   for Full File backup                           |
REM |  or  SET DELTA_MODE=""    for using backup set in-file delta setting     |
REM ----------------------------------------------------------------------------
SET DELTA_MODE="I"

Inserire la tipologia desiderata di Backup successivi al primo full. Qui decidiamo il tipo incrementale: I

REM -------------------------------  DEBUG_MODE  -------------------------------
REM | Set Debug mode.                                                          |
REM | Options available: DEBUG/NO-DEBUG                                        |
REM | e.g. SET DEBUG_MODE="DEBUG"                                              |
REM |  or  SET DEBUG_MODE="NO-DEBUG"                                           |
REM ----------------------------------------------------------------------------
SET DEBUG_MODE="NO-DEBUG"

Qui va inserita la stringa per attivare i log di debug: di default è “NO-DEBUG”

REM ####################  END: User Defined Section  ###########################

Per comodità, vi riportiamo il file completo:

@ECHO OFF
REM ##################  RunBackupSet.bat  ######################################
REM # You can use this batch to run any of your backup sets from the           #
REM # command line. Just customize the "User Defined Section" below with your  #
REM # values for your backup action.                                           #
REM ############################################################################

REM ####################  Start: User Defined Section  #########################

REM -------------------------------  BACKUP_SET  -------------------------------
REM | The name or ID of the backup set that you want to run                    |
REM | If backup set name is not in English, please use BackupSetID             |
REM | e.g. SET BACKUP_SET="1119083740107"                                      |
REM |  or  SET BACKUP_SET="FileBackupSet-1"                                    |
REM |                                                                          |
REM | You can leave this parameter blank if you are using ACB or have only 1   |
REM | backup set.                                                              |
REM ----------------------------------------------------------------------------
SET BACKUP_SET="BackupSet"

REM -------------------------------  BACKUP_TYPE  ------------------------------
REM | Set backup type. You don't need to change this if you are backing up a   |
REM | file backup set.                                                         |
REM | Options available: FILE/DATABASE/DIFFERENTIAL/LOG                        |
REM | e.g. SET BACKUP_TYPE="FILE"          for file backup                     |
REM |  or  SET BACKUP_TYPE="DATABASE"      for Full database backup            |
REM |  or  SET BACKUP_TYPE="DIFFERENTIAL"  for Differential database backup    |
REM |  or  SET BACKUP_TYPE="LOG"           for Log database backup             |
REM |                                                                          |
REM | For MSExchange 2010 BackupSet                                            |
REM | e.g. SET BACKUP_TYPE="DATABASE"      for Full database backup            |
REM |  or  SET BACKUP_TYPE="DIFFERENTIAL"  for Differential database backup    |
REM |  or  SET BACKUP_TYPE="LOG"           for Incremental database backup     |
REM |  or  SET BACKUP_TYPE="COPY"          for Copy database backup 	       |
REM ----------------------------------------------------------------------------
SET BACKUP_TYPE="FILE"

REM ------------------------------  SETTING_HOME  ------------------------------
REM | Directory to your setting home. Default to                               |
REM | "C:\Documents and Settings\USER\.obm" when not set.                      |
REM | e.g. SET SETTING_HOME="C:\Documents and Settings\John\.obm"              |
REM ----------------------------------------------------------------------------
SET SETTING_HOME="C:\Users\administrator\.obm"

REM -------------------------------  DELTA_MODE  -------------------------------
REM | Set In-File Delta mode.                                                  |
REM | Options available: Incremental/Differential/Full (I/D/F)                 |
REM | e.g. SET DELTA_MODE="I"   for Incremental In-file delta backup           |
REM |  or  SET DELTA_MODE="D"   for Differential In-file delta backup          |
REM |  or  SET DELTA_MODE="F"   for Full File backup                           |
REM |  or  SET DELTA_MODE=""    for using backup set in-file delta setting     |
REM ----------------------------------------------------------------------------
SET DELTA_MODE="I"

REM -------------------------------  DEBUG_MODE  -------------------------------
REM | Set Debug mode.                                                          |
REM | Options available: DEBUG/NO-DEBUG                                        |
REM | e.g. SET DEBUG_MODE="DEBUG"                                              |
REM |  or  SET DEBUG_MODE="NO-DEBUG"                                           |
REM ----------------------------------------------------------------------------
SET DEBUG_MODE="NO-DEBUG"

REM ####################  END: User Defined Section  ###########################

Terminato l’editing, salvare il file e aprire l’utilità di pianificazione di Windows.

Pianificare l’esecuzione del file .bat in base alle esigenze di esecuzione del backup.