I often travel from Valencia to Madrid to stay some days to see my teammates at Selltag and I always carry my laptop to develop while commuting. I have a little SSD (128GB) on my laptop where I storage all the code, system, etc.. I have also a HDD with 2TB USB3, on this drive I have photos and personal stuff and I have around 1TB used, so I want a backup of my personal stuff + some things in my SSD. Looking for solutions I found some online companies that are selling space but, why to pay again for online space if I already have a Google Drive 100GB and a Dropbox account?
I found a Mac app called Arq that makes a backup of your data encrypted to different online places, GDrive, Dropbox, Amazon S3, SFTP etc… So I planned my strategy: Make a backup of my documents and my SSD drive (well, some folders) in GDrive and the personal stuff (photos, videos, etc..) on an additional External HDD, also I will have another copy of the SSD drive on the External HDD.
Arq can make backups to SFTP but no to external drives, so I picked up my Raspberry and I connected the 2nd HDD and configured the SSH to access this path, and I configured Arq to this SFTP point so I can make a backup when I arrive home and the SFTP becomes accessible.
So doing this in this way, I don’t pay more, just my GDrive account with 100GB (I can store my Android photos in this space also), my personal stuff is safe in 2 HDD.
To configure my Raspberry I done the following:
- Install the OS in the SD card of the Raspberry following this steps
- Boot, the raspberry and configure it, change user password to a secure one.
- Change the keyboard distro, I use spanish, so “sudo nano /etc/default/keyboard” and change the line “XKBLAYOUT”. “es” for spanish.
- Configure a static ip address following this steps
- Change the default SSH port, just for security, following this steps
- reserve this IP on the router for the raspberry and redirect the SSH port to the configured IP
- Make an account on a dynamic DNS server if you want to make backups/restore outside your home, I use noip, just download a little client to update your IP and access with your new dynamic domain
- Mount the external HDD and configure on fstab to automatically mount on boot following this steps, if you have permission problems, do the following with the partition unmounted: “sudo chown pi:pi /mnt/your_Folder” and on fstab, in the article shows “defaults” as the options, configure with “defaults,uid=1000”.