How to automate Data Files Backup using 7zip

  1. 10 months ago

    Chris

    26 Mar 2018 Developer, Moderator, Beta Tester
    Edited 10 months ago by Chris

    There is the "Archive Files" utility within doogiePIM. However, to use this file zipping function, all files open in doogiePIM must be closed in order for it to be processed by the Windows file system. Therefore, there is an option in the Archive Files window to automatically close the current database for you, of which you will need to reopen it after.

    You don't have to use this facility as it's just a zip files system in case you don't have one yourself. Personally, I always exit doogiePIM and use a batch file that invokes 7zip to backup my data files.

    BackupDataFiles.bat

    @echo off
    :: variables
    set SRCFOLDER=C:\BiteSpire\doogiePIM2\Data Files
    set BACKUPFILE=%date:~0,4%-%date:~5,2%-%date:~8,2%-
    
    "c:\Program Files\7-Zip\7z.exe" a %BACKUPFILE%DataFiles.7z "%SRCFOLDER%"
    xcopy "%BACKUPFILE%DataFiles.7z" "f:\backups"
    pause

    7zip can be downloaded from here: https://www.7-zip.org/download.html

 

or Sign Up to reply!