<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Using_Git_to_backup_moodledata</id>
	<title>Using Git to backup moodledata - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Using_Git_to_backup_moodledata"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Git_to_backup_moodledata&amp;action=history"/>
	<updated>2026-05-07T00:06:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Using_Git_to_backup_moodledata&amp;diff=6183&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Git_to_backup_moodledata&amp;diff=6183&amp;oldid=prev"/>
		<updated>2024-10-18T06:47:18Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:47, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Using_Git_to_backup_moodledata&amp;diff=6182&amp;oldid=prev</id>
		<title>1&gt;Aborrow: actually it does not hurt to backup /muc/config.php</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Git_to_backup_moodledata&amp;diff=6182&amp;oldid=prev"/>
		<updated>2015-01-13T23:38:17Z</updated>

		<summary type="html">&lt;p&gt;actually it does not hurt to backup /muc/config.php&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[GIT]] [https://docs.moodle.org/en/Development:Tracking_Moodle_CVS_with_git] is a distributed source code management system. For the purpose of this document, GIT&amp;#039;s basic feature is that it allows to keep the whole history of a directory tree and track all changes. The basic idea of using GIT as a backup tool is that you can clone you moodledata directory on other disk and/or computer.&lt;br /&gt;
&lt;br /&gt;
Create new file called .gitignore in the moodledata with the following content:&lt;br /&gt;
&lt;br /&gt;
 cache&lt;br /&gt;
 lang&lt;br /&gt;
 localcache&lt;br /&gt;
 lock&lt;br /&gt;
 sessions&lt;br /&gt;
 temp&lt;br /&gt;
 trashdir&lt;br /&gt;
&lt;br /&gt;
Transform your moodledata into the git repository:&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git init&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -m &amp;quot;Initial commit of moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Put following commands into the cronjob&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -a -m &amp;quot;AUTO: committed changes in moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a backup clone on local machine, e.g. on a separate disk&lt;br /&gt;
&lt;br /&gt;
 cd /mnt/backup&lt;br /&gt;
 git clone --no-hardlinks --bare /srv/www/moodledata/.git datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Push changes into a bare clone&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git push /mnt/backup/datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Or, pull changes from the clone (here created on a separate machine)&lt;br /&gt;
&lt;br /&gt;
 git --bare fetch ssh://your.moodle.serv.er/backup/datamoodle.git master:master&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;/div&gt;</summary>
		<author><name>1&gt;Aborrow</name></author>
	</entry>
</feed>