View Full Version : Site Backup
I use script for my gl box's that once a week zip's up the user group and config files and emails them to me, just incase something go's wrong, I know this can easily be done with a batch file, but a nice exe that kill's the site for 2 minutes while it creates a dated backup of essential files would be awesome
why kill site? i think that could really be done by batchfile to zip the few important folders... but problem will be that u have to configure smtp for ur win. with linux its not that problem since it has good smtp support. ordinary windows user wont know how to setup smtp server for win?
just my 2 cent.
toki
hot_pit
02-05-2004, 08:22 AM
you have to kill otherwise you cant copy userfile (in use).
how big is the chance that user file is in use? if there are a few hunderd users u will prolly have a backup of any user file that is not older than 2 or 3 backups... so if u do once a day u loose max 2 or 3 days. or once a week if u prefer so as stated above.
darkone
02-05-2004, 08:47 AM
Originally posted by fuka
you have to kill otherwise you cant copy userfile (in use).
Hmms.. it should be possible to copy userfiles, they're only write locked. It's possible that scripting languages don't understand windows locking semantics & try to open files with read+write permissions - which causes operation to fail.
Mouton
02-05-2004, 04:08 PM
Originally posted by toki
how big is the chance that user file is in use? if there are a few hunderd users u will prolly have a backup of any user file that is not older than 2 or 3 backups... so if u do once a day u loose max 2 or 3 days. or once a week if u prefer so as stated above. All userfiles are (write) locked... and io use a in-memory copy of the userfiles for operations, for the actual files...
djrob
02-06-2004, 04:57 AM
I use ioBackup mentioned in this thread and it works great :)
http://www.ioftpd.com/board/showthread.php?s=&threadid=1280&highlight=iobackup
Copies etc, users, groups and logs everyday @ 23:45 to another drive in a folder called 2004-02-05_23.45.35_ioBackup
If wanted it can be compressed to rar as well :p
freak007
02-06-2004, 03:05 PM
It seems to be a good script but not perfect at all. It cant backup the user and groups dir because the files are in use and that is the problem by ioftpd i think and i dont know how to make this that is works.
Cya Freak007
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.