Skip to content

Commit b301a04

Browse files
committed
Automated backup in Shell Scripting
1 parent d643cfd commit b301a04

File tree

1 file changed

+11
-0
lines changed
  • Shell Scripting Tutorial/Automated_Backup

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
#tar = Tape Archive tool for compression
4+
tar -cvf /backupfolder/backup.tar /home/nishkarshraj/Desktop/Automation-using-Shell-Scripts
5+
6+
#Go to the backup folder location
7+
cd /backupfolder
8+
9+
#Show the size of the folder
10+
du -sh
11+

0 commit comments

Comments
 (0)