Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···3344Advice for backing up Phabricator, or migrating from one machine to another.
5566-= Overview =
66+77+Overview
88+========
79810Phabricator does not currently have a comprehensive backup system, but creating
911backups is not particularly difficult and Phabricator does have a few basic
···1113which needs to be backed up are:
12141315 - the MySQL databases;
1616+ - hosted repositories;
1417 - uploaded files; and
1518 - your Phabricator configuration files.
1619···2124will just backup the old machine and then restore the data onto the new
2225machine.
23262424-= Backup: MySQL Databases =
2727+2828+Backup: MySQL Databases
2929+=======================
25302631Most of Phabricator's data is stored in MySQL, and it's the most important thing
2732to back up. You can run `bin/storage dump` to get a dump of all the MySQL
···3641Then store the backup somewhere safe, like in a box buried under an old tree
3742stump. No one will ever think to look for it there.
38433939-= Restore: MySQL =
4444+Restore: MySQL
4545+==============
40464147To restore a MySQL dump, just pipe it to `mysql` on a clean host. (You may need
4248to uncompress it first, if you compressed it prior to storage.)
43494450 $ gunzip -c backup.sql.gz | mysql
45514646-= Backup: Uploaded Files =
5252+5353+Backup: Hosted Repositories
5454+===========================
5555+5656+If you host repositories in Phabricator, you should back them up. You can use
5757+`bin/repository list-paths` to show the local paths on disk for each
5858+repository. To back them up, copy them elsewhere.
5959+6060+You can also just clone them and keep the clones up to date, or use
6161+{nav Add Mirror} to have the mirror somewhere automatically.
6262+6363+6464+Restore: Hosted Repositories
6565+============================
6666+6767+To restore hosted repositories, copy them back into the correct locations
6868+as shown by `bin/repository list-paths`.
6969+7070+7171+Backup: Uploaded Files
7272+======================
47734874Uploaded files may be stored in several different locations. The backup
4975procedure depends on where files are stored:
···6591For more information about configuring how files are stored, see
6692@{article:Configuring File Storage}.
67936868-= Restore: Uploaded Files =
9494+9595+Restore: Uploaded Files
9696+=======================
69977098To restore a backup of local disk storage, just copy the backup into place.
71997272-= Backup: Configuration Files =
100100+101101+Backup: Configuration Files
102102+===========================
7310374104You should also backup your configuration files, and any scripts you use to
75105deploy or administrate Phabricator (like a customized upgrade script). The best
···85115This file contains all of the configuration settings that have been adjusted
86116by using `bin/config set <key> <value>`.
871178888-= Restore: Configuration Files =
118118+119119+Restore: Configuration Files
120120+============================
8912190122To restore configuration files, just copy them into the right locations. Copy
91123your backup of `local.json` to `phabricator/conf/local/local.json`.
921249393-= Security =
125125+Security
126126+========
9412795128MySQL dumps have no builtin encryption and most data in Phabricator is stored in
96129a raw, accessible form, so giving a user access to backups is a lot like giving
···105138present a risk. If you restrict access to the Phabricator host or database, you
106139should also restrict access to the backups.
107140108108-= Next Steps =
141141+142142+Next Steps
143143+==========
109144110145Continue by:
111146