匿名用户数据库:有什么文件备份软件,可以把备份文件从机器a 备份到机器b?
写个脚本,用scp、ftp或者rsync 弄过去。
评论
有用 0机器b开nfs sever,机器a 挂载nfs目录,然后就随便备了
评论
有用 2写个脚本,然后配置下cront定时任务,脚本如下
[oracle@trac1 backupscripts]$ cat scpbackupfiles.sh
#!/bin/sh
scp /home/oracle/backupsets/backupfiles/expdp_*.dmp root@192.168.22.111:/backupset/
评论
有用 0#!/bin/sh
scp /home/oracle/backupsets/backupfiles/expdp_*.dmp root@192.168.22.111:/backupset/
这样写,如果要提示输入对端密码怎么办。我是说如果定时任务跑的话
评论
有用 0SCP自动定时传送 - 百度文库 .p-txt{font-size: 18px;margin: 31.5px 63px;} .ie-tip { background-color: #ffffe1; color: #333; font-size: 18px; line-height: 40px; padding: 10px 0 10px 10px; text-align: center; border-bottom: 1px solid #f1f1f1; }
scp 不用输入密码脚本
[root@pc1 home]# su - user1
[user1@pc1 ~]$ mkdir .ssh
[user1@pc1 ~]$ chmod 700 .ssh
[user1@pc1 ~]$
[user1@pc1 ~]$
[user1@pc1 ~]$
[user1@pc1 ~]$
[user1@pc1 ~]$ cd .ssh/
[user1@pc1 .ssh]$ ls
[user1@pc1 .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
ca:e2:7b:c5:a4:fd:8e:e2:00:b8:fc:d5:29:02:53:47 user1@pc1.localdomain
[user1@pc1 .ssh]$ ssh 192.168.100.52 cat /home/user1/.ssh/id_rsa.pub >> authorized_keys
The authenticity of host '192.168.100.52 (192.168.100.52)' can't be established.
RSA key fingerprint is e8:4b:06:bc:79:6f:a4:27:a8:d9:20:4f:34:1a:b3:85.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.100.52' (RSA) to the list of known hosts.
评论
有用 0
墨值悬赏


