Banana Pi - Backup the system from SATA-Disk
Translation will follow soon.
Translation will follow soon.
I protracted it for a while but now it was definitely time: the upgrade of bananian to the latest version.
I protracted that, because although with 'bananian-update' there is a really nice upgrade script but on the corresponding website is said, that an SATA installation is not supported.
I then looked at the update scripts and after I found nothing that would affect my SATA installation, I gave that script a chance.
This time it is completely simple: All you need to do is nothing!
The package OpenSSH, which is installed by default in almost all Linux distributions and that is responsible for the fact, that you can log in to your banana via SSH, contains already a SFTP server. SFTP = Secure File Transfer Protocol, that means an encrypted FTP protocol.
That means, users who are set up on the Banana Pi can immediately connect the banana with a FTP client such as FileZilla. You just have to take care, that you specify "SFTP" as protokoll.
In most cases, it is also advisable to install a Mail Transfer Agent (MTA) on your server to enable him to send mails itself.
Why is this useful?
However, you should be very careful with the configuration so that the own server is not abused by spammers.
Again, the precondition is a LEMP installation as described in this article: Installation of Nginx, MySQL and PHP
Seafile has a its own little web server, but it can not handle the HTTPS protocol. So, to get an encrypted transmission to the cloud, you have to run Seafile behind a "real" web server - in this case, nginx.
The installation is done in 4 steps:
In order to have enough space on your home server, it is the best to connect a SATA disk. This has the advantage to a USB disk that you can also store the databases reliable to the SATA disk. I always had problems storing them on a USB-Disk. And if you have a hard drive connected, you can install the root file system to the disk, so that the banana boots from disk from now on.
Have a look at the polarity of the power cables of the SATA cable. The black wire should be on the left. Unfortunately I had to cut the cable and reverse them (sorry Frank:-)).
This requires a LEMP installation, as described here: Nginx, MySQL and PHP
This manual is written for an banana Pi, but it should also work for a Raspberry Pi or Beaglebone Black.
Step 1: Set up Nginx with SSL
These create the directory /etc/ssl/nginx, change to the directory and create a self-signed certificate.
Whether you want to run OwnCloud, Baikal or WordPress on the Banana Pi - you will need a web server, MySQL and PHP. I have decided to use Nginx as web server, since it is very resource-friendly compared to Apache. And it is also known for its performance and stability.
This combination is known as LEMP: L inux + nginx(pronounced "engine x") + MySQL + PHP.
1. install Nginx
apt-get install nginx
Now start the server with
First you have the Banana Pi naturally get its operating system.
Since the Banana Pi be used as server, I have decided for the distribution Bananian. An absolute lightweight distribution based on Debian Wheezy, which is designed for low resource usage, security and speed. No graphical user interface, no frills, just the pure operating system. Perfect for a server!