I'm completely new to Ubuntu and I was warned that I should backup data. How do I do all of this? I don't any about this dd, partitions or stuff so I need some help.
I'm completely new to Ubuntu and I was warned that I should backup data. How do I do all of this? I don't any about this dd, partitions or stuff so I need some help.
Backing up all the programs would be 10 GB or more. It doesn't make much sense to back them up since they can be restored off the internet.
Backing up all your writings would be a couple MB. Unless you write very fast and frequently of course. Backing up your spreadsheets and presentations could be 100's of MBs if you have lots of clip art and images.
Backing up all your photos and songs could take dozens of GBs. An alternative would be to mirror the music and photos on your smartphone with Ubuntu. Chances are good a man made (fire, theft, vandalism, the ex) or an Act of God (lightning, flood, earthquake) will not effect both devices at the same time.
Backing up your videos could be 100's of GBs.
You have to know what you have, where it is stored, how big it is and whether or not it needs to be backed up. You will have to think about this and do some research.
For myself I used an automated backup to compressed file (< 25 MB) every morning that is emailed to my gmail.com account. Each morning
cron
only backs up what I've written along with configuration files of Ubuntu settings.After a year now I'll have to adopt a Father-Son-Grandfather backup strategy for Yearly, Monthly, Weekly and Daily backups to prune the number of backups (365+ days) currently stored in gmail.com which is limited to 15 GB for free to everyone on planet Earth (or theoretically Mars if they have an IP address).
If you are interested in my daily backup to gmail.com script, you can see it here: Backup Linux configuration, scripts and documents to Gmail.
You can buy cheap 16 GB, 32 GB or 64 GB USB flash drives (aka thumb drives) and copy your whole Ubuntu image and data files to it.
If you have a 500 GB hard drive or SSD and Ubuntu only takes up 25 to 50 GB you can create a backup partition to store backups. Note these will not be offsite backups nor will they save you if your hard drive crashes. These backup partitions are helpful when you shoot yourself in the foot and delete a whole bunch of files or directories. To clone your Ubuntu partition to another backup partition I wrote this script: Bash script to clone Ubuntu to new partition for testing 18.04 LTS upgrade
Additionally there are backup programs you can use but I can't vouch for them.
Be aware that when people tell you to make backups, there are two different kinds.
One is for disaster recovery. If your computer is stolen or your house burns down, you need to have a copy of your data stored somewhere else so you can recover it onto the new hardware you're going to have to buy.
For many people, making these full backups once a week or even once a month or so is enough. They are willing to take the chance on losing some data, but want to be sure they won't lose years of photographs.
These backups don't have to be fast, nor do they have to be online. Rotating through two or three USB sticks, taking one home to make the copy and then leaving it at your workplace for safe keeping is easy. In case of disaster, it doesn't really matter if it takes a day or two to get the data back. What's important is that you can get it back.
The other kind of backup is for occasional mistakes. If you are editing a file and mess it up, it's nice to be able to have a copy of what it looked like yesterday.
Or perhaps you break something and don't notice it for a week or two. Comparing the program with what it looked like last month can be very useful.
These kind of backups should be automatic, frequent, and easy to access. They don't need to be stored off site.
For the second kind, I have a root crontab entry that uses "rsync --archive" to create backups that are very easy to access and use when I need them. I can use standard unix command-line tools to compare and restore different versions.
A more detailed description of how I do this is already in an existing answer, but basically what it does is maintain a full copy of (most of) my home directories in one backup directory, and maintain copies of any files that were changed or deleted in other directories, each named by date. E.g.: