tar cvf /dev/st0 `date +%Y%m%d`
0 12 * * * tar cvf /dev/st0 `date +%Y%m%d` #archive the backup files daily
Nov 4 12:00:01 dbbackup crond[22652]: (root) CMD (tar cvf /dev/st0 `date +)
0 12 * * * cd /u02/dbback/ebsdb;tar cvf /dev/st0 `date +%Y%m%d` #archive the backup files daily
Nov 4 12:00:01 dbbackup crond[22652]: (root) CMD (cd /u02/dbback/ebsdb;tar cvf /dev/st0 `date +)
0 12 * * * cd /u02/dbback/ebsdb;/bin/tar cvf /dev/st0 `date +%Y%m%d` >log >2&1 #archive the backup files daily
Nov 5 13:22:01 dbbackup crond[15483]: (root) CMD (cd /u02/dbback/ebsdb;/bin/tar cvf /dev/st0 `date +)
Nov 5 13:23:01 dbbackup crond[15550]: (root) CMD (cd /u02/dbback/ebsdb;/bin/tar cvf /dev/st0 `date +)
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |