SQLite backup and restore
From this stack overflow page... "The safe way to backup is to run:$ sqlite3 my_database.sq3and then:
$ .backup backup_file.sq3Result is copy of the database. It's different from regularly file copying, because it takes care of any users currently working on the database. There are proper locks set on the database, so the backup is done exclusively."
That's the proper way, but with one user (no worries about locks), simpler ways are available.
initialization
Apache: Main file httpd.conf. Problem: as noted at top, Apache combined with PHP can sip RAM incrementally. Serverfault.com has pages of helpful forum question answers for a fine-grained approach. One particularly helpful overview is here.In general for a sandbox, you only need a couple of connections. I set MaxClients (MaxRequestWorkers since Apache 2.4) to "5".
Another thing is to be sure to enable
No comments:
Post a Comment