<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch Script : Backup alfresco windows in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12170#M5380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ECHO OFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET BACKUP_DIR=C:\Users\infouser\Documents\BACKUPALF\alf_data&lt;BR /&gt;SET ALF_DATA_PATH=C:\alfresco-community&lt;BR /&gt;SET ALF_DATA_DIR_NAME=alf_data&lt;BR /&gt;SET DATABASE_NAME=alfresco&lt;BR /&gt;SET RSYNC=C:\cwrsync\bin\rsync.exe&lt;BR /&gt;SET Postgresql_Port=5432&lt;BR /&gt;Set Postgresql_DB_name=alfresco&lt;/P&gt;&lt;P&gt;REM +-----------------------------------------------------------------------+&lt;BR /&gt;REM | Do not change anything below here unless you know what you are doing. |&lt;BR /&gt;REM +-----------------------------------------------------------------------+&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;md %BACKUP_DIR%\DB_BACKUPS&lt;BR /&gt;SET POSTGRESQLDUMP=%ALF_DATA_PATH%\postgresql\bin\pg_dump.exe&lt;BR /&gt;SET STORE=%BACKUP_DIR:~0,1%\%BACKUP_DIR:~3%\STORE&lt;BR /&gt;SET contentstore-deleted=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\contentstore.deleted&lt;BR /&gt;SET contentstore=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\contentstore&lt;BR /&gt;SET keystore=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\keystore&lt;BR /&gt;SET oouser=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\oouser&lt;BR /&gt;SET postgresql=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\postgresql&lt;BR /&gt;SET solr4=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\solr4&lt;BR /&gt;SET solr4Backup=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\solr4Backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cd %ALF_DATA_PATH%\%ALF_DATA_DIR_NAME%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECHO Backing up the alfresco Postgresql database...&lt;BR /&gt;timeout /t 5&lt;BR /&gt;call %POSTGRESQLDUMP% --host 127.0.0.1 --port %Postgresql_Port% --username "postgres" --no-password --format tar --blobs --verbose --file "%BACKUP_DIR%\DB_BACKUPS\%DATE:~3,2%-%DATE:~0,2%-%DATE:~6,4% T %TIME:~0,2%-%TIME:~3,2%.backup" "%Postgresql_DB_name%"&lt;/P&gt;&lt;P&gt;echo %TIME:~0,2%-%TIME:~3,2%&lt;/P&gt;&lt;P&gt;ECHO Syncronisation "contentstore"...&lt;BR /&gt;timeout /t 5&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%contentstore:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%contentstore-deleted:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%keystore:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%oouser:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%postgresql:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%solr4:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%solr4Backup:\=/%" "/cygdrive/%STORE:\=/%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ECHO Finished!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the right code for complete alf_data backup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 10:59:50 GMT</pubDate>
    <dc:creator>rajiv8495</dc:creator>
    <dc:date>2017-06-29T10:59:50Z</dc:date>
    <item>
      <title>Batch Script : Backup alfresco windows</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12169#M5379</link>
      <description>hello,I'm posting my script (.bat) to help peaple to backup alfrescoyou must configure the first 7 line of this script with your alfresco installation&amp;nbsp;"cwrsync.zip" contains rsync.exe that will synchronise alfresco contentstore with the mirror contententstoreyou can configure the windows "Task Sched</description>
      <pubDate>Sat, 22 Apr 2017 13:12:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12169#M5379</guid>
      <dc:creator>yacinezr</dc:creator>
      <dc:date>2017-04-22T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Script : Backup alfresco windows</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12170#M5380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ECHO OFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET BACKUP_DIR=C:\Users\infouser\Documents\BACKUPALF\alf_data&lt;BR /&gt;SET ALF_DATA_PATH=C:\alfresco-community&lt;BR /&gt;SET ALF_DATA_DIR_NAME=alf_data&lt;BR /&gt;SET DATABASE_NAME=alfresco&lt;BR /&gt;SET RSYNC=C:\cwrsync\bin\rsync.exe&lt;BR /&gt;SET Postgresql_Port=5432&lt;BR /&gt;Set Postgresql_DB_name=alfresco&lt;/P&gt;&lt;P&gt;REM +-----------------------------------------------------------------------+&lt;BR /&gt;REM | Do not change anything below here unless you know what you are doing. |&lt;BR /&gt;REM +-----------------------------------------------------------------------+&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;md %BACKUP_DIR%\DB_BACKUPS&lt;BR /&gt;SET POSTGRESQLDUMP=%ALF_DATA_PATH%\postgresql\bin\pg_dump.exe&lt;BR /&gt;SET STORE=%BACKUP_DIR:~0,1%\%BACKUP_DIR:~3%\STORE&lt;BR /&gt;SET contentstore-deleted=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\contentstore.deleted&lt;BR /&gt;SET contentstore=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\contentstore&lt;BR /&gt;SET keystore=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\keystore&lt;BR /&gt;SET oouser=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\oouser&lt;BR /&gt;SET postgresql=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\postgresql&lt;BR /&gt;SET solr4=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\solr4&lt;BR /&gt;SET solr4Backup=%ALF_DATA_PATH:~0,1%\%ALF_DATA_PATH:~3%\%ALF_DATA_DIR_NAME%\solr4Backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cd %ALF_DATA_PATH%\%ALF_DATA_DIR_NAME%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECHO Backing up the alfresco Postgresql database...&lt;BR /&gt;timeout /t 5&lt;BR /&gt;call %POSTGRESQLDUMP% --host 127.0.0.1 --port %Postgresql_Port% --username "postgres" --no-password --format tar --blobs --verbose --file "%BACKUP_DIR%\DB_BACKUPS\%DATE:~3,2%-%DATE:~0,2%-%DATE:~6,4% T %TIME:~0,2%-%TIME:~3,2%.backup" "%Postgresql_DB_name%"&lt;/P&gt;&lt;P&gt;echo %TIME:~0,2%-%TIME:~3,2%&lt;/P&gt;&lt;P&gt;ECHO Syncronisation "contentstore"...&lt;BR /&gt;timeout /t 5&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%contentstore:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%contentstore-deleted:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%keystore:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%oouser:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%postgresql:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%solr4:\=/%" "/cygdrive/%STORE:\=/%"&lt;BR /&gt;%RSYNC% --delete -a -v "/cygdrive/%solr4Backup:\=/%" "/cygdrive/%STORE:\=/%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ECHO Finished!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the right code for complete alf_data backup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 10:59:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12170#M5380</guid>
      <dc:creator>rajiv8495</dc:creator>
      <dc:date>2017-06-29T10:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Script : Backup alfresco windows</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12171#M5381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="168856" data-username="rajiv8495" href="https://community.alfresco.com/people/rajiv8495" style="color: #8bc34a; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;" rel="nofollow noopener noreferrer"&gt;Rajiv B&lt;/A&gt;&amp;nbsp;my credentials for&amp;nbsp;postgresql&amp;nbsp;is alfresco and it has a password, may i know where to put the password in the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 08:37:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/batch-script-backup-alfresco-windows/m-p/12171#M5381</guid>
      <dc:creator>arcubalino</dc:creator>
      <dc:date>2017-11-03T08:37:27Z</dc:date>
    </item>
  </channel>
</rss>

