|  | @@ -4622,34 +4622,7 @@ Make sure that the database gets backed up.  By using cron if anything goes wron
 | 
	
		
			
			| 4622 | 4622 |  editor /etc/cron.daily/backup
 | 
	
		
			
			| 4623 | 4623 |  #+END_SRC
 | 
	
		
			
			| 4624 | 4624 |  
 | 
	
		
			
			| 4625 |  | -If you already have a backup script created for Friendica then just uncomment the lines for Red Matrix.  The backup script should look something like the following:
 | 
	
		
			
			| 4626 |  | -
 | 
	
		
			
			| 4627 |  | -#+BEGIN_SRC: bash
 | 
	
		
			
			| 4628 |  | -#!/bin/sh
 | 
	
		
			
			| 4629 |  | -
 | 
	
		
			
			| 4630 |  | -# stop the web server to avoid any changes to the databases during backup
 | 
	
		
			
			| 4631 |  | -service apache2 stop
 | 
	
		
			
			| 4632 |  | -
 | 
	
		
			
			| 4633 |  | -MYSQL_PASSWORD=elNYCk3hKE5jCjifUUL6ymP7
 | 
	
		
			
			| 4634 |  | -umask 0077
 | 
	
		
			
			| 4635 |  | -
 | 
	
		
			
			| 4636 |  | -# Backup the database
 | 
	
		
			
			| 4637 |  | -mysqldump --password=$MYSQL_PASSWORD friendica > /var/backups/friendica_daily.sql
 | 
	
		
			
			| 4638 |  | -
 | 
	
		
			
			| 4639 |  | -# Make the backup readable only by root
 | 
	
		
			
			| 4640 |  | -chmod 600 /var/backups/friendica_daily.sql
 | 
	
		
			
			| 4641 |  | -
 | 
	
		
			
			| 4642 |  | -# Backup the database
 | 
	
		
			
			| 4643 |  | -mysqldump --password=$MYSQL_PASSWORD redmatrix > /var/backups/redmatrix_daily.sql
 | 
	
		
			
			| 4644 |  | -
 | 
	
		
			
			| 4645 |  | -# Make the backup readable only by root
 | 
	
		
			
			| 4646 |  | -chmod 600 /var/backups/redmatrix_daily.sql
 | 
	
		
			
			| 4647 |  | -
 | 
	
		
			
			| 4648 |  | -# restart the web server
 | 
	
		
			
			| 4649 |  | -service apache2 start
 | 
	
		
			
			| 4650 |  | -#+END_SRC
 | 
	
		
			
			| 4651 |  | -
 | 
	
		
			
			| 4652 |  | -Save and exit.
 | 
	
		
			
			|  | 4625 | +Uncomment the lines for Red Matrix, then save and exit. If you didn't install Friendica earlier then see the backup section within the Friendica install instructions.
 | 
	
		
			
			| 4653 | 4626 |  
 | 
	
		
			
			| 4654 | 4627 |  #+BEGIN_SRC: bash
 | 
	
		
			
			| 4655 | 4628 |  chmod 600 /etc/cron.daily/backup
 |