Repository navigation
Foundations
Work in progress
[TOC]
If you've only got one copy - you've lost your work already.
Backing up your data and work is super important. At best it's demoralising to lose work that you spent time on, but you could potentially lose things you can't recreate - like photos.
The general rule of thumb for data storage is called 3-2-1, where you:
- keep at least 3 copies of your data
- keep the backup data on at least 2 different devices
- keep at least 1 copy off site (i.e. in a different place to the other two copies).
I achieve this using a workstation for my primary/working data; a NAS (network attached storage) for a local backup; and a cloud backup for off-site storage. This solution is comprehensive, but relatively expensive. The NAS cost makes sense to me as I use it as a home server, along with domestic and work file synchronisation and backups.
A low cost alternative is to use an external drive for a local backup along with cloud storage for an off-site copy.
For MAC users, time machine is a worthwhile feature to switch on, this takes snapshots of your machine.
For off-site storage you can setup a space on a cloud platform yourself, but many companies provide encrypted backup off-the-shelf. Two examples are Backblaze and Synology C2. When choosing a platform look for features like encryption and versioning.
One tool to really help with backups is rsync, which is a command line utility to sync two directories by only transferring differences. i.e. the first sync process can take a long time as all data are transferred, but subsequent syncs only transfer changed data, which is faster. rsync is probably the best tool to backup to an external drive.
A simple example of rsync might be:
rsync -azv /home/me/source_dir/ /media/ext_drive
You can read more about flags on the man page. The ones applied here:
-
-aarchive mode -
-zcompress data during transfer -
-vverbose
A neat function of rsync is the -n flag, which makes a dry-run of the sync.
You can redirect the output of this rsync process from the console to a file ( > tobkup.txt ), meaning you can investigate potential changes to your backup before they're made.
This could be a good safeguard against ransomeware - i.e. you can check what will be backed up before changes are made.
Read more about backups at the NCSC.
Ten quick tips for staying safe online
A password manager is a great tool for storing your passwords and generating unique ones. Reusing passwords is dangerous because it makes it easier for hackers to (ab)use your login. I use keepassxc, but many others exist. A good password manager should have web browser integration, store your passwords encrypted, allow you to generate new passwords, etc.. Other thing I value: being able to store encrypted notes along with passwords (e.g. recovery codes).
You can read more about password managers at the National Cyber Security Centre.
Typing faster will save you a huge amount of time. Take a typing test to see what speed you type at. If you type below 40 words per minute spend a bit of time learning to touch type (typing without looking at your keyboard).
Using a keyboard instead of a mouse will speed up your work. A mouse in inherently slow - especially when navigating menus. To improve the speed you navigate learn some keyboard shortcuts, some will be specific to your operating system and software and others will apply everywhere.
To begin try navigating a typed document (e.g. .docx) or a spreadsheet using arrow keys.
What happens if you hold ctrl and/or shift while you use arrow keys?
What do home, end, page up and page down do?
Often in software keyboard shortcuts are shown next to their menu entries, e.g. ctrl + c is copy and ctrl + v is paste, these are listed next to their menu entries in Libreoffice.
In RStudio alt + shift + k will open a screen of keyboard shortcuts.
Experiment and find keyboard shortcuts for commands you use regularly!
