Skip to content

Commit 089612f

Browse files
committed
2 parents 0fc41bd + 1837cea commit 089612f

28 files changed

+42
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Automation-using-Shell-Scripts
2+
Development Automation using Shell Scripting, Crontab Scheduling, LAMP STACK etc.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Compress the folder with foldername + date and take backup
4+
filename="backup_`date +%d`_`date +%m`_`date +%Y`.tar";
5+
6+
# Create compressed file using tar and move to backup folder
7+
tar cvf /backupfolder/$filename /home/nishkarshraj/Desktop/HelloWorld
8+
9+
# Move to Backup folder
10+
cd /backupfolder
11+
12+
# List the content
13+
ls
14+
15+
# List the disk usage
16+
du -sh
54.5 KB
Loading
37.5 KB
Loading
28.8 KB
Loading
101 KB
Loading
39.2 KB
Loading
28.1 KB
Loading
79.8 KB
Loading
6.95 KB
Loading

0 commit comments

Comments
 (0)