Backing up files in Linux simply means storing these files on an external device like CD or DVD. It helps in the case when computer crashes. Linux do offer a number of useful tools to help user in backing up the system.
Let’s take an example and say you wanted to make make a backup copy of the entire directory /data , thus the command may run like this:
tar cvf data.backup /data
Data. Backup: The name of the file to store the backups of your files
When tar completes, you are up with a single file that contains a copy of everything in the /data directory. Linux treats hardware just like regular files you could also use the name of a device file in following manner:
tar cvf /dev/tape /data
Assuming you had a tape drive on your system, and named it /dev/tape, this script would backup your data to your tape drive.


