use tmp 7zip batch scheduled
Hello to all,
we also had the problem of backup all sites...
right now... for a temporary solution I did like this...
1. Installed 7zip
2. added 7zip path to windows path variable
3. created a batch file
4. created a scheduled backup for every week day (Mon,Tue,Wed etc..) that launch my batchfile with Day parameter
5. my batch file actually moves the backup created to a NAS (but this is your choice what to do)
here is my batch file
@ECHO Off
rem %1 is the day parameters
rem userdata to connect a share
set UserData=/USER:backupuser password
set TmpFolder=D:\Tmp-Backup
rem FolderListFile is a textual file with the list of the folders to backup one for each line
set FolderListFile=d:\PleskScripts\BackupFolders.txt
rem
for /f "tokens=1,2,3 delims=/- " %%x in ('date/t') do set d=%%z%%y%%x
set LogFile=%d%_LogBackup_%computername%.txt
set BackupFile=%computername%_%1.7z
rem
echo Start BACKUP -- %date% %time% -- >> "%TmpFolder%\%LogFile%"
rem
7z a "%TmpFolder%\%BackupFile%" @%FolderListFileFolderListFile >> "%TmpFolder%\%LogFile%"
rem
echo Start movin file on NAS >> "%TmpFolder%\%LogFile%"
Net use N: %DestFolder% %UserData%
echo Moving file %BackupFile% on N: %DestFolder% -- %date% %time% -- >> "%TmpFolder%\%LogFile%"
move /Y "%TmpFolder%\%BackupFile%" N: >> "%TmpFolder%\%LogFile%"
echo End moving file %BackupFile% on N: %DestFolder% -- %date% %time% -- >> "%TmpFolder%\%LogFile%"
Net use n: /delete
rem
echo END BACKUP -- %date% %time% -- >> "%TmpFolder%\%LogFile%"
ex of BackupFolders.txt content
d:\PleskWebSites
d:\MyMailServer
...