- First create a timestamp that looks something like (YearMonthDay-Hour:Minute:Second) or (20200512-02:30:00). This will give you a unique identifier.
- Then cd into the directory you want to back up.
- Create a tar.bz2 (bzip2 compression) file.
- Optionally, delet the original files.
Example: