We assume that Dropbox account you already have. If not, you can get a couple of minutes .
So, connect via ssh to Raspberry and improve the rights of the system:
Go to the home directory:
And install script Dropbox Uploader
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
Go to the folder Dropbox Uploader
and put out the right to execute the script:
chmod +x dropbox_uploader.sh
Then, run the script and enter the required data:
The first thing you ask the script - it Api Key. To get it, you need to create an application to Dropbox, for this:
The data report script. Next, the script will ask what rights we have given our application. Select the app folder, ie we need to press a
the next step, the script prompts you to verify the entered data, if everything is OK, then click y
In response, we get a link that you need to go to give the application access to the folder. Link does look like this:
After this, in the console press enter. If done correctly, in response we get the Setup completed !, and the folder with the application will appear in your Dropbox account.
Now check the script to work and keep in wallet.dat dropboks:
./dropbox_uploader.sh upload -f /root/.dropbox_uploader /home/emc/.emercoin/wallet.dat
with the following contents:
tar cf "$BKP_FILE" $BKP_DIRS
$DROPBOX_UPLOADER -f /root/.dropbox_uploader upload "$BKP_FILE.gz" /
rm -fr "$BKP_FILE.gz"
To expose the right:
chmod 755 backupwallet.sh
And run the script:
If all goes well, in this folder will appear in dropbokse wallet.dat archive with files and emercoin.conf
Now we have to make a backup for the crown. To do this, enter the command:
and add the line:
0 5 * * * /home/backupwallet.sh 2>&1 >> /var/log/backup.log
Now, every day at five in the morning will create a backup of the purse.
Well, as always - if you have problems or questions - Wellcome in the comments.