---
title: "linux 务计划 oracle 远程自动备份"
author: "zjutsoft"
date: "2012-12-25T16:54:01Z"
tags: []
categories: ["操作系统"]
slug: "linux-oracle"
draft: false
lastmod: "2012-12-25T16:54:01Z"
id: 1753940
url: "https://zjutsoft.iteye.com/blog/1753940"
---

Linux 任务计划 crontab -e 编辑任务计划 crontab -r 删除任务计划 crontab -l 查看任务计划。

52 16 * * 0-6 ./backup.sh

52代表分钟  16 代表小时 * 天  * 月  0-6 代表周日-周六 就每天执行这个任务。

rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp procity_xmjp/US_211xm owner=procity_xmjp file=/ylx/DB_XM/xmjp/xmjp_$rq.dmp"