AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  back up script

    Posted Tue December 29, 2009 12:45 AM

    Originally posted by: chpal


    I am writting a script to take back up of two files using the following script.


    clear
    JAVA_HOME=/opt/WebSphere/AppServer/java/bin

    dy=`/usr/bin/date +%Y%m%d`
    #/blaze/cde/in/blazerma65/config/a
    jar -cvf /config/a/bkup/bk$dy.jar /config/IndiaRep /config/META-INF

    it is taking back up, but when I compare the backup folder with the original folder using diff command, several differences come out.
    Please guide me ASAP.

    Thanks All!
    #AIX-Forum


  • 2.  Re: back up script

    Posted Wed December 30, 2009 01:25 PM

    Originally posted by: nagger


    Well its not April 1st, so I guess you are actually serious :-)

    I suggest you backup just two files with the commands cp or dd and stop mucking about with obviously inappropriate software.
    Either:
    • the Java program is rubbish
    • your file system filled up during the copy
    • the files copied are open and being updated while copied
    • the originals where modified after the copy

    You will have to make up your own mind.

    thanks Nigel
    #AIX-Forum