Skip to content

SACHINKUMAR1728/backup-in-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

backup-in-linux

The above backup.sh file can be used to create a backup of files in linux using tar command

Step 1) create backup.sh file and for that open your terminal and write following code in your terminal

touch backup.sh

Step 2) change the property of this file to executable file

chmod +x backup.sh

Step 3) to edit the backup.sh write following command

nano backup.sh

step 4) Now write the code of backup.sh in your backup.sh file and change the names of source_dir and backup_dir name according to your choice....

step 5) press ctrl+s to save and ctrl+x to exit from the editor

step 6) now write following command in your terminal to execute the backup.sh file and take backup of your desired directory

  ./backup.sh

step 7) Now type "ls" in terminal to list all the contents step 8) Now you will see a file created with extension .tar.gz

To extract the file created open archive manager from utilities and from there open the file you created and you will get the option to extract all the archived file...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages