I'm wondering about some various ways to automate the best backup system that I can for my Synchronet subsystem. Right now, I've been handling things by shutting the BBS down for a few minutes after nightly message-base packing, and rsyncing a copy to a live tree that I've got, along with some other systems that aren't incremental as such.
I'm wondering about some various ways to automate the best backup system that I can for my Synchronet subsystem. Right now, I've been handling things by shutting the BBS down for a few minutes after nightly
message-base packing, and rsyncing a copy to a live tree that I've got, along with some other systems that aren't incremental as such. What I'm curious about, is can I skip checking for users online? What would be the worst repercussions of restoring from a backup made with users online?
Also, if the BBS were performing some maintenance, posting, or adding to
one of the message bases, say usenet, since it always spends the most time pulling and adding to bases, and I caught an rsync during that, would I be dealing with anything more than just having to do an 'smbfix' on that base?
Thanks for your time. I appreciate it greatly, and I'll try to toss up some notes on the backup system that I've got implemented after I know the best route to go with all of this.
Now, timed events are running (usually) single-threaded and serialized, so if your backup is run as a Synchronet timed event, that will at least avoid some of the possible causes of out-of-sync files during the backup.
It's possible you could have some out-of-sync files if you copied them while they were being modified (e.g. message base files while they were being post to or messages being imported from a network), but so long as you're perform regular backups, you could always just go to previous (day's?) backup to get any files that happened to have been out-of-sync during the backup. I wouldn worry about it too much.
Now, timed events are running (usually) single-threaded and serialized, so i your backup is run as a Synchronet timed event, that will at least avoid som of the possible causes of out-of-sync files during the backup.
Re: Backing up w/users online/server active?
By: Digital Man to Khelair on Wed Feb 04 2015 17:29:51
Now, timed events are running (usually) single-threaded and
serialized, so if your backup is run as a Synchronet timed event, that will at least avoid some of the possible causes of out-of-sync files during the backup.
Hmm. I do a drive image (via Windows backup) once a week. If I could figure out how to call that from a command line, should I run it as an event, or would that stop the BBS until the event is finished running?
It won't stop the BBS, it just won't run any other timed events until the backup is complete (assuming the command-line executes sycnhronously).
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
Re: Backing up w/users online/server active?
By: Digital Man to Joe Delahaye on Thu Feb 05 2015 14:43:28
It won't stop the BBS, it just won't run any other timed events until the backup is complete (assuming the command-line executes sycnhronously).
I do it manually by using Control Panel and the backup option right now. However, unless I can find a command line to call that procedure in Vista, it probably will never make it as an event.
Here's my backup script -- nothing fancy. I run it as a timed, exclusive event. Given the discussions here I thought it might inspire other people or someone might offer some improvements.
On 02-06-15 17:44, mark lewis wrote to Poindexter Fortran <=-
On Fri, 06 Feb 2015, Poindexter Fortran wrote to Joe Delahaye:
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
hey! there ya go! :)
Hmm. I do a drive image (via Windows backup) once a week. If I could figure out how to call that from a command line, should I run it as an event, or would that stop the BBS until the event is finished running? I have yet to find a way to automate that.
I do it manually by using Control Panel and the backup option right now. However, unless I can find a command line to call that procedure in Vista, it probably will never make it as an event.
Hmm. I do a drive image (via Windows backup) once a week. If I could
figure out how to call that from a command line, should I run it as an
event, or would that stop the BBS until the event is finished running?
I have yet to find a way to automate that.
use windows scheduler
I do it manually by using Control Panel and the backup option right
now. However, unless I can find a command line to call that procedure
in Vista, it probably will never make it as an event.
just make a batchfile and archive your sbbs\data sbbs\ctrl once a week
A quick web search pointed me here: https://technet.microsoft.com/en-us/library/cc754015%28WS.10%29.aspx
Apparently the command-line tool "wbadmin" is used for this purpose.
digital man
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 06:29:29 |
Calls: | 510 |
Messages: | 220571 |