Portal for ArcGIS walarchive

13809
18
Jump to solution
10-05-2018 02:04 AM
DanielIrwin
New Contributor III

Hi there,

So, asking for a friend, in the install directory for Portal there's a folder under <install dir>\backup\walarchive\ which seems to contain a backup file for every hour since it was installed.  They've run out of disk space (each file is 16Mb, there's thousands of them), and it's now breaking their portal.  So questions are (a) what is this backing up as there's a separate walarchive for the data store (i.e. it's not this one) and (b) how do you manage that backup?  I've seen some stuff on managing the backup of the data store, but that doesn't seem to affect this backup?

I'm guessing it's ok to delete the older ones, but they would prefer no to have to keep going back to them over and over again...

Many thanks in advance

Dan

Tags (3)
18 Replies
TimHayes3
Occasional Contributor

When you mention "if you're not going to run incremental backups, delete the backups manually", by manually do you mean go into File Explorer walarchive folder select all the files in this folder then hit delete? 

0 Kudos
DavidHoy
Esri Contributor

yes - simple delete in windows explorer of files older than your last full backup is safe

0 Kudos
DanielIrwin
New Contributor III

Hi Jonathan

Many thanks, I have passed this information on to the person who was asking, I'm not sure what their DR policy is, hopefully this can solve it for them!

Regards

Dan

0 Kudos
JanSarata
Esri Contributor

Hi @JonathanQuinn ,

is there any update regarding this behaviour?

Is there a way how completely turn these incremental backups off? I would like to get rid of this feature since the customer has different way to make backups (daily backup of virtual images).

Appreciate any new update.

Have a good day,

Jan

BillLotz
Occasional Contributor II

Looking for updates as well. The ability to turn it off would be nice, or to reinstate the cap.

0 Kudos
AnibalMmartinez
Occasional Contributor

Tenemos el mismo problema en versión 10.7.1 y no entendemos la solución que propones, ¿podrías indicar paso a paso que hay que hacer, como frenamos este incremento de archivos permanentes, sin eliminar archivos manualmente?

Saludos,

Anibal Telecom Argentina

0 Kudos
lvargas
Occasional Contributor

Hola @AnibalMmartinez 

A partir de la versión 10.5, la base de datos interna del Portal (diferente del ArcGIS Data Store) hace una copia de seguridad en \arcgisportal\backup\walarchive. Estos registros walarchive registran mucho más que las transacciones reales dentro de la base de datos. Registran el estado de la base de datos y otras actividades internas no visibles para el administrador o el usuario del portal. Se escriben en el disco cada hora (16 MB aprox.), independientemente de la actividad; el ritmo de escritura puede ser superior a una hora en algunos casos. Existe una restricción del espacio utilizado pero la misma se quita cuando se realiza un respaldo completo, o bien se hace una carga de un respaldo previo en el ambiente.

En la actualidad no hay manera de controlar las copias de seguridad incrementales de Portal (en versiones previas a 10.9)*. Estas son copias de seguridad para proporcionar la información necesaria cuando se realice una copia de seguridad completa; la manera de borrar estos registros es ejecutar un webgisdr completo (un respaldo de la configuración y los datos del ambiente).

*Nota: La capacidad de modificar la copia de seguridad incremental de Portal esta disponible para ArcGIS Enterprise 10.9.

Teniendo claro lo anterior, las opciones que se pueden abordar son:

  • Verificar el espacio en el disco duro del equipo en donde está el Portal for ArcGIS para validar que dicho servidor no tenga problemas de espacio.
  • Una vez descartado lo anterior, ejecutar de forma periódica un respaldo completo de la configuración y los datos del ambiente a través de la utilidad webgisdr (esto para borrar los registros de transacción del Portal) Se debe de tener una ventana de mantenimiento en la cual no se realicen modificaciones al ambiente; se podría hacer de forma manual o bien programando una tarea automática en el servidor.
  • Eliminar los archivos con cierta periodicidad de forma manual (manteniendo al menos 1 día de respaldos incrementales).
  • Programar un script (un bat, python etc.) para que de forma automática elimine estos archivos (manteniendo al menos 1 día de respaldos incrementales)

Espero que los datos sean de utilidad.

Saludos.

AnibalMmartinez
Occasional Contributor

Mil Gracias @lvargas !

0 Kudos
Trevor_Hart
Occasional Contributor

Still happening at 10.9.1. I dont use WebGISDR on my development system and its always running out of space.

I wrote this batch file which will clear out the walarchive folder using the pg_archivecleanup Postgres utility

 

 

 

 off

SET PGBIN=C:\ArcGIS\Portal\framework\runtime\pgsql\bin

SET LOC=C:\arcgisportal\backup\walarchive

FOR /F "delims=|" %%I IN ('DIR "%LOC%" /B /O:D') DO SET NewestFile=%%I

echo %NewestFile%

%PGBIN%\pg_archivecleanup.exe %LOC% %NewestFile%

pause