Handy script for cleanup (WGSCLEAN.bat)

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

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by syntax »

MiOw wrote:
syntax wrote:The one I posted ( http://www.mudinfo.net/viewtopic.php?p= ... b41d#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: 113
Joined: Tue Nov 15, 2016 7:40 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by MiOw »

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.


ClassicMUD... lightly seasoned with no dupes!
www.mudinfo.net/viewtopic.php?f=64&t=2357
User avatar
syntax
Site Admin
Posts: 517
Joined: Tue Jun 02, 2009 10:02 am

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by syntax »

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: 113
Joined: Tue Nov 15, 2016 7:40 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by MiOw »

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!


ClassicMUD... lightly seasoned with no dupes!
www.mudinfo.net/viewtopic.php?f=64&t=2357
Kithias
Posts: 4
Joined: Thu Feb 02, 2017 4:19 pm

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by Kithias »

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!


User avatar
BearFather
Posts: 652
Joined: Sun Feb 09, 2014 6:27 pm
Location: Portland, OR
Contact:

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by BearFather »

Name it WGSCLEAN.bat


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

Re: Handy script for cleanup (WGSCLEAN.bat)

Post by Kithias »

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


Post Reply