This is a little script I wrote to back up my home folder to an external drive.
-
First run lsblk (or another similar command) to know how the drive that has to be mounted by the script is called)
-
Run the following command:
./backup.sh [name of back up file] [drive name]- Watch out:
- The name of the back up file should be a valid file name without an extension
- You only have to give the drive name, not the fill path to it, the script assumes /dev/[drive name]