/* Coded by Shinji */ /*Basically code does is creates a .tgz file to your home directly */ void do_backup(CHAR_DATA * ch, char *argument) { char buf[MAX_STRING_LENGTH]; if (IS_NPC(ch)) { send_to_char("Nope.\n\r",ch); return; } /* This Section just rename destiny to your muds name or whatever...Destiny is my Muds name :) */ /* The first system line removes the oldest backup automatically */ send_to_char ("Backing up...\n\r", ch); system("rm ../../destiny4.tgz"); system("mv ../../destiny3.tgz ../../destiny4.tgz"); system("mv ../../destiny2.tgz ../../destiny3.tgz"); system("mv ../../destiny1.tgz ../../destiny2.tgz"); system("mv ../../destiny0.tgz ../../destiny1.tgz"); sprintf (buf, "tar zcvf ../../destiny0.tgz ../../Destiny &"); system (buf); send_to_char ("Backing up the mud right now\n\r", ch); send_to_char ("Done.\n\r", ch); }