Cleanup/Backup Clarification (for a dummy)

Discussion on running your own board and editing MajorMUD.
Post Reply
Alazarin
Posts: 5
Joined: Thu Sep 15, 2022 8:42 am

Cleanup/Backup Clarification (for a dummy)

Post by Alazarin »

So, assume I have done nothing else prior to this step and my goal is to set the bbs to do a nightly backup. My understanding is as follows :
1> Create WGSCLEAN.BAT and place it in the WGSERV dir

2> Add the following command line (this would be the only line yes? )
@echo off
start /WAIT C:\wgserv\winrar.exe a -rr -ag-MMM-DD-YYYY C:\wgbackup\wgbackup.rar C:\wgserv

3> place rar.exe in WGSERV dir along with the WGSCLEAN.BAT


Is there anything else the veterans would recommend I do / add, anything I am overlooking here to achieve my goal listed above?


Bloodrock
Posts: 301
Joined: Mon Jul 16, 2012 9:02 pm

Re: Cleanup/Backup Clarification (for a dummy)

Post by Bloodrock »

i do not use winrar but what you got is ok now what i also do is to copy the compressed file to a cloud so i always have a way
incase hd dies or comp to have a backup file. i use megasync as my cloud storage because it creates a folder on my comp and my dropbox as well
but even if my hd dies or comp its still at the cloud. i zip my whole bbs folder. i do also copy the zip to several of my external drives.
Last edited by Bloodrock on Thu Sep 15, 2022 2:34 pm, edited 1 time in total.


Bloodrock
Posts: 301
Joined: Mon Jul 16, 2012 9:02 pm

Re: Cleanup/Backup Clarification (for a dummy)

Post by Bloodrock »

this is my wgsclean.bat file

del /q c:\mainbbs.zip
del /q c:\wg\wgsaudit.adt
del /q c:\wg\*mmud.log
del /q c:\wg\GALEML2.DAT
del /q "\\isor\public\mainbbs.zip"
del /q \\ajp\MEGA\mainbbs.zip
del /q \\ajp\tonybook\mainbbs.zip
rem c:\wg\pkzip -a -P -rp c:\mainbbs.zip c:\wg\*.*
"C:\Program Files\PeaZip\res\7z\7z.exe" a -tzip -mm=Deflate -mmt=on -mx5 -mfb=32 -mpass=1 -sccUTF-8 -mem=AES256 -bb0 -bse0 -bsp2 "-wC:\" "C:\mainbbs.zip" "C:\WG"
set Source=C:\mainbbs.zip
set Destination="\\ajp\tonybook\nightly\"
set Filename=mainbbs
set a=1

:loop
if exist %Destination%\%Filename%(%a%).zip set /a a+=1 && goto :loop
copy %Source% %Destination%\%Filename%(%a%).zip

copy c:\mainbbs.zip \\isor\minibook
copy c:\mainbbs.zip \\isor\public
copy c:\mainbbs.zip \\ajp\tonybook
copy c:\mainbbs.zip \\ajp\MEGA


Post Reply