Oracle Solaris System Administration (MOSC)

MOSC Banner

script help required

edited Oct 17, 2012 4:57AM in Oracle Solaris System Administration (MOSC) 6 commentsAnswered
Hi All,

i am looking for a script which will take backup of my directories one at a time in /home directory. After taking tar backup the script will compress the tar file and then delete original data.

i have create something using find command but it's not working getting errors. please help me out i am new to scripting.

bash-3.00# du -sh /home/*
   6K   /home/A
   2K   /home/B
   2K   /home/C
   2K   /home/D
   2K   /home/E
   8K   /home/lost+found
bash-3.00# cd /home/A
bash-3.00# ls -l
total 10
drwxr-xr-x   2 root     root         512 Oct 16 16:30 1
bash-3.00# cd 1
bash-3.00# ls -l

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center