Subversion Repositories SmartDukaan

Rev

Rev 4385 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4385 Rev 4471
Line 28... Line 28...
28
${CP} -r /var/lib/tomcat6/webapps/db ${BACKUP_DIR}/${DATE}
28
${CP} -r /var/lib/tomcat6/webapps/db ${BACKUP_DIR}/${DATE}
29
 
29
 
30
${ECHO} Content DB Backup End Time `${DATEC}`
30
${ECHO} Content DB Backup End Time `${DATEC}`
31
${ECHO} ======================================================================
31
${ECHO} ======================================================================
32
 
32
 
33
${ECHO} Cleaning up backups older than 2 days
33
${ECHO} Cleaning up backups older than 60 minutes
34
${ECHO} ======================================================================
34
${ECHO} ======================================================================
35
find $BACKUP_DIR -mtime +2 -exec ${RM} -rv {} \;
35
find $BACKUP_DIR -mmin +60 -exec ${RM} -rv {} \;
36
 
36
 
37
#Clean up IO redirection
37
#Clean up IO redirection
38
exec 1>&6 6>&-      # Restore stdout and close file descriptor #6.
38
exec 1>&6 6>&-      # Restore stdout and close file descriptor #6.
39
exec 2>&7 7>&-      # Restore stdout and close file descriptor #7.
39
exec 2>&7 7>&-      # Restore stdout and close file descriptor #7.
40
 
40