|  | @@ -208,6 +208,12 @@ function backup_users {
 | 
	
		
			
			| 208 | 208 |                  backup_directory_to_friend /home/$USERNAME/.config config/$USERNAME
 | 
	
		
			
			| 209 | 209 |              fi
 | 
	
		
			
			| 210 | 210 |  
 | 
	
		
			
			|  | 211 | +            # fin files
 | 
	
		
			
			|  | 212 | +            if [ -d /home/$USERNAME/.fin ]; then
 | 
	
		
			
			|  | 213 | +                echo $"Backing up fin files for $USERNAME"
 | 
	
		
			
			|  | 214 | +                backup_directory_to_friend /home/$USERNAME/.fin fin/$USERNAME
 | 
	
		
			
			|  | 215 | +            fi
 | 
	
		
			
			|  | 216 | +
 | 
	
		
			
			| 211 | 217 |              # local files
 | 
	
		
			
			| 212 | 218 |              if [ -d /home/$USERNAME/.local ]; then
 | 
	
		
			
			| 213 | 219 |                  echo $"Backing up local files for $USERNAME"
 | 
	
	
		
			
			|  | @@ -507,7 +513,7 @@ function disperse_key_shares {
 | 
	
		
			
			| 507 | 513 |  
 | 
	
		
			
			| 508 | 514 |                  # copy the fragments directory to the remote server
 | 
	
		
			
			| 509 | 515 |                  /usr/bin/sshpass -p "$REMOTE_PASSWORD" \
 | 
	
		
			
			| 510 |  | -                    scp -r -P $REMOTE_SSH_PORT $temp_key_share_fragments $REMOTE_SERVER
 | 
	
		
			
			|  | 516 | +                                 scp -r -P $REMOTE_SSH_PORT $temp_key_share_fragments $REMOTE_SERVER
 | 
	
		
			
			| 511 | 517 |                  if [ ! "$?" = "0" ]; then
 | 
	
		
			
			| 512 | 518 |                      # Send a warning email
 | 
	
		
			
			| 513 | 519 |                      echo "Key share to $REMOTE_SERVER failed" | \
 | 
	
	
		
			
			|  | @@ -531,27 +537,27 @@ function valid_backup_destination {
 | 
	
		
			
			| 531 | 537 |      is_valid="yes"
 | 
	
		
			
			| 532 | 538 |  
 | 
	
		
			
			| 533 | 539 |      if [[ "$destination_dir" == "hubzilla" || \
 | 
	
		
			
			| 534 |  | -          "$destination_dir" == "hubzilladata" || \
 | 
	
		
			
			| 535 |  | -          "$destination_dir" == "gogs" || \
 | 
	
		
			
			| 536 |  | -          "$destination_dir" == "gogsrepos" || \
 | 
	
		
			
			| 537 |  | -          "$destination_dir" == "gogsssh" || \
 | 
	
		
			
			| 538 |  | -          "$destination_dir" == "gnusocial" || \
 | 
	
		
			
			| 539 |  | -          "$destination_dir" == "gnusocialdata" || \
 | 
	
		
			
			| 540 |  | -          "$destination_dir" == "mariadb" || \
 | 
	
		
			
			| 541 |  | -          "$destination_dir" == "config" || \
 | 
	
		
			
			| 542 |  | -          "$destination_dir" == "letsencrypt" || \
 | 
	
		
			
			| 543 |  | -          "$destination_dir" == "wiki" || \
 | 
	
		
			
			| 544 |  | -          "$destination_dir" == "wiki2" || \
 | 
	
		
			
			| 545 |  | -          "$destination_dir" == "xmpp" || \
 | 
	
		
			
			| 546 |  | -          "$destination_dir" == "ipfs" || \
 | 
	
		
			
			| 547 |  | -          "$destination_dir" == "dlna" || \
 | 
	
		
			
			| 548 |  | -          "$destination_dir" == "tox" || \
 | 
	
		
			
			| 549 |  | -          "$destination_dir" == "ssl" || \
 | 
	
		
			
			| 550 |  | -          "$destination_dir" == "blog" || \
 | 
	
		
			
			| 551 |  | -          "$destination_dir" == "owncloud" || \
 | 
	
		
			
			| 552 |  | -          "$destination_dir" == "owncloud2" || \
 | 
	
		
			
			| 553 |  | -          "$destination_dir" == "ownclouddata" || \
 | 
	
		
			
			| 554 |  | -          "$destination_dir" == "mailinglist" ]]; then
 | 
	
		
			
			|  | 540 | +                "$destination_dir" == "hubzilladata" || \
 | 
	
		
			
			|  | 541 | +                "$destination_dir" == "gogs" || \
 | 
	
		
			
			|  | 542 | +                "$destination_dir" == "gogsrepos" || \
 | 
	
		
			
			|  | 543 | +                "$destination_dir" == "gogsssh" || \
 | 
	
		
			
			|  | 544 | +                "$destination_dir" == "gnusocial" || \
 | 
	
		
			
			|  | 545 | +                "$destination_dir" == "gnusocialdata" || \
 | 
	
		
			
			|  | 546 | +                "$destination_dir" == "mariadb" || \
 | 
	
		
			
			|  | 547 | +                "$destination_dir" == "config" || \
 | 
	
		
			
			|  | 548 | +                "$destination_dir" == "letsencrypt" || \
 | 
	
		
			
			|  | 549 | +                "$destination_dir" == "wiki" || \
 | 
	
		
			
			|  | 550 | +                "$destination_dir" == "wiki2" || \
 | 
	
		
			
			|  | 551 | +                "$destination_dir" == "xmpp" || \
 | 
	
		
			
			|  | 552 | +                "$destination_dir" == "ipfs" || \
 | 
	
		
			
			|  | 553 | +                "$destination_dir" == "dlna" || \
 | 
	
		
			
			|  | 554 | +                "$destination_dir" == "tox" || \
 | 
	
		
			
			|  | 555 | +                "$destination_dir" == "ssl" || \
 | 
	
		
			
			|  | 556 | +                "$destination_dir" == "blog" || \
 | 
	
		
			
			|  | 557 | +                "$destination_dir" == "owncloud" || \
 | 
	
		
			
			|  | 558 | +                "$destination_dir" == "owncloud2" || \
 | 
	
		
			
			|  | 559 | +                "$destination_dir" == "ownclouddata" || \
 | 
	
		
			
			|  | 560 | +                "$destination_dir" == "mailinglist" ]]; then
 | 
	
		
			
			| 555 | 561 |          is_valid="no"
 | 
	
		
			
			| 556 | 562 |      fi
 | 
	
		
			
			| 557 | 563 |  
 |