The default note taking program in Linux Mint -TomBoy Notes can be configured to sync and backup notes with remote systems/servers that use SSH server.
All you’d need on the remote end is a system that has SSH server installed which can accept incoming SSH connections. (An earlier article on how to configure and harden SSH server in Ubuntu can be found here. )
On the source PC from which TomBoy Notes need to be synced or backed up, there are a couple of things that need to be done.
Setup keys based SSH auto login to remote server :
As Tomboy Notes are to be synced through SSH, a public and private key pair based login from that to the remote server needs to be enabled. (A detailed explanation on doing that can be found here too.)
To do this, first generate the key pair from Terminal with the following command :
Keep the default options as they are and let the keys be generated.
Next, copy the public key to the remote server via SSH using the command :
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
During this time, you’d need to manually enter the username and password when logging into the remote server. But once the key is copied, the subsequent logins will be automatic.
You can then simply use ssh [email protected], no password will be needed.
Install SSHFS :
Tomboy Notes SSH syncing require a remote file system daemon and an active SSH daemon running in the background to backup and sync the notes to remote server.
So, the second step is to install SSHFS (SSH File System). From Terminal, install it :
sudo apt install sshfs
Once installed, reboot the PC.
Now the fun part of actually configuring Tomboy Notes. 🙂
Open Tomboy Notes.
Then go to Edit > Preferences.
Click on Add-ins and select Synchronization > SSH Sync Service Add-in. Then choose Enable.
This now will allow SSH backup configuration for Tomboy Notes.
Now, go to Synchronization > SSH.
Over there, enter the remote server name and username.
The login credentials are the same as what were used to login remotely when setting up the keys authentication before. No password is needed as SSH keys are already setup.
Folder Path is optional but it is better to have a separate folder for Tomboy Notes on remote server, enter that path here.
Also enable Automatically Sync from there, the default time interval being 10 minutes.
Finally hit Save.
If all goes well, after sometime there will be a notification of connection being successful.
Click Yes to sync all the existing notes to remote server through SSH.
You can click on Details menu to see what is happening, there will be a list of Tomboy Notes that will be uploaded to remote server.
You can also manually sync the notes at any point of time if needed through Tools > Synchronize Notes.
On the remote server, an XML file named manifest.xml will now be available in the Tomboy Notes backup folder.
This has all the synced and backed up notes from the Linux Mint PC.
To disable syncing, simply remove the SSH sync service add-in that was enabled before.