backup

How to execute long running tasks in PHP without cron

雨燕双飞 提交于 2019-12-08 07:02:25
问题 Lets imagine my situation (it's fake, of course)... I have web-site that have 1000 active users. I need to do some stuff that will be slow (database clean-up, backups) etc.. For example, it may take 5 minutes. I want to accomplish that when user opens my web-site and some params are executed (for example, he is first visitor in one week)... user somehow sends signal to server - that slow process must be run now, but he doesn't wait for it's execution (those several minutes)... he just sees

Why is it such a mission to backup a SQL Server 2008 Express database?

南楼画角 提交于 2019-12-08 06:05:18
问题 I wouldn't describe myself as afraid of change - but afraid of new technologies? YES INDEED! Technologies from operating systems, to database servers just seem to become bugged, inefficient and backward the further they "progress" MSDE 2000 (what they might call "SQL 2000 Express" in today's world) BACKUP [MyDatabase] TO FILE 'c:\backups\mybackup.backup' SQL 2008 EXPRESS Wait up! Its a 'user instance' - to back it up we need to attach it to a server instance Wait up! To attach it we need SQL

Ruby on Rails Newbie

泄露秘密 提交于 2019-12-08 04:43:19
问题 I've inherited a Ruby on Rails application that has a problem. I'm half way through some books on Rails, but haven't seen the answer to some questions yet. What is the best way to backup the application? Can I just tar -cvzf app.tgz app ? I don't know yet if the app has a sqlite3 database or connects to a db server. What's the best way to move the application to another server for testing? Again, I don't know if it's sqlite3 or a db server backing it. Thanks, Michael Update : Yes, I will be

Making a backup file + appending date time + moving file if the file exists. PYTHON

允我心安 提交于 2019-12-08 04:00:26
问题 I have a few of the pieces of this working but I'm struggling with putting them together. I would like to take a file, move it to a backup folder, get the date time from that file, and append it to the file's name / change the file's name to file name + date time. This part gets the date time in the format I want it. (print line is the date time formatted properly, but I don't need to print this line) Filepath = "C:\\SyncWork\\ACE\\Files\\ESAL_P\\ESAL_P.txt" modifiedTime = os.path.getmtime

How to do backup of development branches with Gerrit?

[亡魂溺海] 提交于 2019-12-07 23:54:49
问题 I'm using Gerrit to manage my git repository. Patches are sent to Gerrit server and merged into the git repository when they are approved. However, often a feature takes some time to develop and the developer wants to keep a backup of the code under development. The obvious solution is to push the branch directly to Gerrit, but then https://code.google.com/p/gerrit/issues/detail?id=1986 prevents me from submitting this branch to review. A possible hack is to remove the remote branch when I

Is there any simple automated way of finding out all the source files associated with a Delphi project?

若如初见. 提交于 2019-12-07 17:43:56
问题 I like to backup up the source code set for a project when I release a version. I use GExperts project backups, which seems to gather up all the files in the project manager into the ZIP file. You can also add arbitrary files to this file set, but I'm always conscious of the fact that I haven't necessarily got all the files. Unless I specifically go though the uses clauses and add all the units I have sources for to the project, I'll never be sure of storing all the files necessary to

DropBox as Version Control and Offsite Backup

自古美人都是妖i 提交于 2019-12-07 15:41:26
问题 After reading Michael Lopp's book "Being Geek," I started using Dropbox as a means of synchronizing files between my home computer and work computer. It's been fantastic, it really makes it painless to keep track of the latest version of files you're working on. My question has to do with people's experience with this tool, especially programmers who may have used it to develop larger projects. Right now, I see 3 main uses of Dropbox: 1. synchronize files between home and work computers 2.

Neo4j 2.1.2 incremental backup fails but full backup succeeds

元气小坏坏 提交于 2019-12-07 15:36:08
问题 We recently upgraded our database from 2.0.1 to 2.1.2 (Enterprise) using the explicit upgrade procedure. When trying to take a backup post-upgrade, full backups succeed, but incremental backups fail. When running this command the first time, it succeeds: ~/neo4j-enterprise-2.1.2/bin/neo4j-backup -from single://127.0.0.1 -to /mnt/backups/neo4j-test-backup Running it a second time gives the following error: Performing backup from '127.0.0.1' 00:18:44.907 [main] INFO o.n.k

How to hide folder in NSDocumentsDirectory and disallow backup via iTunes & iCloud

狂风中的少年 提交于 2019-12-07 13:27:17
问题 I create private folder in NSDocumentDirectory and i want to hide it in iTunes and disallow to backup. In this question How to hide folders created in Document Directory in ios? people suggest to save in private directory. But it's not ok according apple documentation https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html Application_Home/Library/ You should not use this directory for user data

MySQL Backup: Can I copying individual MyISAM table files to another server with different MySQL version and different OS?

你离开我真会死。 提交于 2019-12-07 12:20:51
问题 I means copying individual MyISAM table files is: (shut down mysqld and copy the .frm, .myd, and .myi files from one database folder to another) Question: (a) can I use this way to backup MySQL database folder from one server to another server with different MySQL version? (b) can this backup files moved to different OS? (example: debian to centos) 回答1: Only file-level copy MyISAM tables between versions of servers with the same: - CPU 'endian' ( SPARC != x86 ) - MySQL versions are upgrade