Handy script for cleanup (WGSCLEAN.bat)

Discussion on running your own board and editing MajorMUD.
User avatar
syntax
Site Admin
Posts: 401
Joined: Tue Jun 02, 2009 10:02 am

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby syntax » Wed Feb 08, 2017 12:29 pm

MiOw wrote:
syntax wrote:The one I posted ( viewtopic.php?p=4336&sid=c626bcc5cec1af13d1f8706c4234b41d#p4336 ) backs up the entire WG folder, minus wccupda2.dat.


If I were to be picky and want it in the C:\BACKUP would I simply put "C:\BACKUP\" in place of the "..\_backup"?

Thanks again!

You'd replace all instances of "_backup" with whatever you want (other than illegal filename characters). And avoid using spaces.


User avatar
MiOw
Posts: 74
Joined: Tue Nov 15, 2016 7:40 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby MiOw » Thu Feb 09, 2017 2:39 pm

syntax wrote:You'd replace all instances of "_backup" with whatever you want (other than illegal filename characters). And avoid using spaces.


Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:

The script worked perfectly and I appreciate the help. Nice to have a very robust and solid backup process and when it comes to hosting multiple cloud-based servers the elimination of wasted space on that log file will save a few bucks each year.


BBS.CLASSICMUD.COM - stock 1.11p - nothing fancy, just MUD the way your daddy played it!

RETRO.CLASSICMUD.COM - stock 1.11b - definitely not made for MegaBabies!
User avatar
syntax
Site Admin
Posts: 401
Joined: Tue Jun 02, 2009 10:02 am

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby syntax » Thu Feb 09, 2017 4:45 pm

MiOw wrote:Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:


It's not a command, per say. They part of the paths; ".." means previous directory and a single "." means current directory.


User avatar
MiOw
Posts: 74
Joined: Tue Nov 15, 2016 7:40 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby MiOw » Thu Feb 09, 2017 8:17 pm

syntax wrote:
MiOw wrote:Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:


It's not a command, per say. They part of the paths; ".." means previous directory and a single "." means current directory.


Aye, re-read my post and my intent was to say "similar to the command of "cd ..", not that ".." in the batch was itself a command.

Thanks again!


BBS.CLASSICMUD.COM - stock 1.11p - nothing fancy, just MUD the way your daddy played it!

RETRO.CLASSICMUD.COM - stock 1.11b - definitely not made for MegaBabies!
Kithias
Posts: 4
Joined: Thu Feb 02, 2017 4:19 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby Kithias » Tue Feb 14, 2017 8:00 pm

Sorry if I missed this, I did dig around a little online and on this site... but once I have the .bat backing up the way I want, how do I get it to launch when the BBS does clean up automatically?

Thanks in advance!


Kithias
Posts: 4
Joined: Thu Feb 02, 2017 4:19 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Postby Kithias » Wed Feb 15, 2017 6:35 am

Ahhh, thank you BearFather! Thats why I didnt find that file on a directory search. Much appreciated. :)



Return to “Worldgroup and Editing Questions”

Who is online

Users browsing this forum: No registered users and 1 guest