Problems with Batch Backup and with Specific Software

0

I have two problems with backups performed in different ways (they are distinct and independent solutions), the first is a batch (BAT file) and the second is with the backup software of SEAGATE DASHBOARD (I'll call SD for simplicity) .

The backup is made from some previously selected folders on drive C, which I treat as "HD_Server".

In the case of the backup made by the BAT file, there are three options for external drives (treated as "HD_External"), E :, F: or G: to receive the updated data from previously selected folders.

So, because the file is named BACKUP.BAT, to back up from C: to the external hard drive in F :, just run BACKUP F:

I put the full batch below, but only with two folders for example, Accounts1 and Accounts2 that are in C: (C: \ Accounts1 and C: \ Accounts2, respectively).

Notes : A backup LOG file is generated, the changed data is copied even from the subdirectories, and at the end of the file there are indications of the options used in the commands.

cls
echo off

cls
echo ##### BACKUP PARCIAL #####

rem %%%%%%%%%%% DEFINA A UNIDADE A COPIAR %%%%%%%%%%% 

set UNID=E:

rem Opções de unidades:  E:, F: ou G:

cls

echo.

echo   .---------------------------------------------------------------------------.
echo   : O BACKUP SERA FEITO NA UNIDADE %UNID%                                     :
echo   :                                                                           :
echo   :                 De HD_SERVER para %UNID%\HD_Externo                       :
echo   :                 ===================================                       :
echo   :                                                                           :
ECHO   :              ***** CONECTAR AO HD EXTERNO PRIMEIRO *****                  :
echo   :                                                                           :
ECHO   :     ***** A LISTA A SEGUIR MOSTRA O ULTIMO BACKUP COM OS TEMPOS *****     :
echo   :                                                                           :
echo   :                                                                           :
echo   :                                                                           :
ECHO   :           Tecle  ENTER  para iniciar ou  CTRL+C  para cancelar            :
ECHO   '---------------------------------------------------------------------------;
echo.

pause

cls

echo.
echo.
echo         ##############  ULTIMO BACKUP  ##############
echo.

type backup_nb.txt

echo.

pause

cls

copy backup_nb.txt backup_nb.ant

del backup_nb.txt

cls

echo. >>backup_nb.txt
echo          **************************************************************>>backup_nb.txt
echo. >>backup_nb.txt
echo De HD_Server para HD_Externo>>backup_nb.txt
echo. >>backup_nb.txt
echo **************************************************************>>backup_nb.txt
echo. >>backup_nb.txt
echo. >>backup_nb.txt
echo ### INICIO ###>>backup_nb.txt
date /T>>backup_nb.txt
time /T>>backup_nb.txt
echo. >>backup_nb.txt

echo.
echo.
echo.
echo.
echo                 * * * * *  I N I C I O  D O  B A C K U P  * * * * *
echo.
echo.
echo.
echo.
date /T
echo.
time /T

echo.

echo **************************************************************
echo **************************************************************>>backup_nb.txt
echo C,Contas1
echo C,Contas1>>backup_nb.txt
XCOPY C:\Contas1 %UNID%\BACKUP\Contas1 /D /V /E /Y
date /T>>backup_nb.txt
time /T>>backup_nb.txt
date /T
time /T
echo **************************************************************
echo     **************************************************************>>backup_nb.txt

echo **************************************************************
echo **************************************************************>>backup_nb.txt
echo C,Contas2
echo C,Contas2>>backup_nb.txt
XCOPY C:\Contas2 %UNID%\BACKUP\Contas2 /D /V /E /Y
date /T>>backup_nb.txt
time /T>>backup_nb.txt
date /T
time /T
echo **************************************************************
echo **************************************************************>>backup_nb.txt

echo. >>backup_nb.txt
echo ### FINAL ####>>backup_nb.txt
date /T>>backup_nb.txt
time /T>>backup_nb.txt
echo.
date /T
echo.
time /T

echo.
echo.
echo.
echo.
echo                 * * * * *  F I M  D O  B A C K U P  * * * * *

echo. >>backup_nb.txt
echo.
echo.
echo.

type backup_nb.txt

echo.
echo.
echo                 * * * * *  F I M  D O  B A C K U P  * * * * *
echo.
echo.
echo.

pause

REM     XCOPY origem destino /OPCAO1 /OPCAO2 ...    XCOPY copia sub-   diretorios tambem
rem
rem     XCOPY origem destino /D /E /V /F
REM
REM     /D  SE NENHUMA DATA ESPECIFICADA, COPIA SO OS MAIS NOVOS QUE O   DESTINO
rem         ou copia so os alterados durante ou apos a data especificada  (/D:m-d-y)
rem
rem     /E  copia pastas e sub-pastas INCLUSIVE as vazias
rem
rem     /V  verifica copia
rem
rem     /Y  nao pergunta se substitui
rem
rem     /F  Exibe copia por completo ao copiar

echo on   

1) Problem in BAT file : When you include files downloaded from the internet in the backup, for example, some are not copied, because a message appears saying "the filename is too long".

In the case of SD software, there is Seagate's own external drive, and the manufacturer's software automatically updates the data from previously selected folders whenever data changes.

2) Problem in SD backup software : I was surprised to see the back-up data and noticed that the dates and times of the files are not the original dates and times, of the backup. The problem is that some files are managed precisely by the date and time that they were updated, which impairs this type of control. Another problem is that SD software "does not overlap" changed files, as it keeps each version changed by creating control folders for each one of them, that is, if I changed a file 5 times on different dates, it will generate five new folders. control, each with the respective copy of the file changed on the date; however the latest files (newer ones - distinct files) can be recovered by the software. This fact impairs a direct query to the data (in the unit of backup), since the most recent data, saved in different dates, are in folders also different damaging the analysis of this data.

Doubt:

In the face of the problems presented (remembering that they are separate and independent solutions), there is a backup software that copies files of long names (which in the BAT file are not copied) and that keep the original date and time of the files "backed up" in addition to keeping the data organized in the way they were originally, ie overlapping the previous files with the updated ones and in the same folder structure?

The goal is to perform backups with an option that does not have any of these problems.

Thank you in advance.

    
asked by anonymous 13.11.2016 / 04:19

1 answer

1

If the OS is Windows test with Cobian Backup.

I use it for a long time and it has great backup options, as well as being free.

link

    
13.11.2016 / 04:46