Rsync de backup
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
Lastmodified &lastmod;
#counter([total|today|yesterday]);
----
Contents
#contents
----
* パスワードを求められる [#hebadddb]
今、dsa でキーを作って鍵認証を設定すると、パスワードを求...
ssh-keygen -b 1024 -t dsa
とすると、dsa が生成されるが、鍵交換してもパスワードを求...
ssh-keygen
とすると、デフォルトでRSA-2048 が生成される。2018年10月8...
*RSA-2048以上を推奨 [#r209ceaa]
https://oshiete.goo.ne.jp/qa/8753873.html
ITセキュリティにおいて使用される暗号には、公開鍵暗号、共...
RSA1は、SSH1での使用に限られていて、しかもSSH1には暗号を...
ssh-keygen (-b 2048 : default=2048)
http://www.infoscience.co.jp/technical/rsync/rsync.html#o...
----
*rsync [#n87216d0]
初回バックアップ
sent 28,602,292,240 bytes received 3,199,878 bytes 1,1...
total size is 28,586,529,157 speedup is 1.00
二回目
sent 7,988,547 bytes received 376,646 bytes 123,928.79...
total size is 28,587,054,525 speedup is 3,417.38
三回目w
sent 5,398,911 bytes received 131,592 bytes 165,089.64...
total size is 28,587,204,874 speedup is 5,169.01
*Rsync de backup [#y22e59e5]
**backup スクリプト 2013-04-10 09:41:42 バージョンw [#yb...
/root/bin/backup2blackhole.sh
#!/bin/sh
/usr/local/bin/rsync -av --inplace --exclude '*.core' --...
**rsyncのちょっといいオプションを知った夏の一日 [#q1d5b35d]
http://blog.livedoor.jp/tuzzy92/archives/52541703.html
その名は --inplace
# man rsync | grep inplace
--inplace update destination files in-place
意味は
ファイルの中身の一部分を変更する場合に、目的のファイルに...
※http://omake.accense.com/wiki/LinuxBackupScript より引用
**FreeBSDの準備 [#q0e1fdad]
は、実はあまりない。~
FreeBSDは5.xの頃から、デフォルトではsshdすら起動しない設...
vi /etc/rc.conf
sshd_enable="YES"
とだけ書いておけばいい。デフォルトではパスワード認証を許...
portsから
**rsyncをインストール [#afb324ce]
する必要があるので、
# portinstall net/rsync
しておく。rsyncdを起動する必要もないので、インストール後...
#ref(rsync_option.gif)
リモートのファイル転送では、プッシュ(被バックアップ側が...
公開鍵の登録、バックアップ先ディレクトリの設定等を行い、...
あとは以下のコマンド
/root/bin/backup_to_Guard_all.sh
#!/bin/sh
/usr/local/bin/rsync -av --exclude="/usr/freebsd-update"...
を用意する。
# ./root/bin/backup_to_Guard_all.sh
などとして、動作確認した後、
**crontabに書き込む [#tde4522a]
だけだ。
vi /etc/crontab
# Backup to Piano
30 2 * * * root /root/bin/backup_to_piano.sh
**鍵交換認証 [#n6b51802]
http://phys8.s.chiba-u.ac.jp/nakayamal/machines.html#ssh02
アクセスする側で、
ssh-keygen -b 1024 -t dsa
してid_dsa.pubを作り、アクセス先の~foo/.ssh/へhotshot_id_...
% cp hotshot_id_dsa.pub authorized_keys
する。既にauthorized_keys が存在している様なら、
% cat ~/.ssh/hotshot_id_dsa.pub >> ~/.ssh/authorized_keys
% chmod 600 ~/.ssh/authorized_keys
で、追加書き込みになります。
***piano2nd.smb.net のマシンを入れ替えたので・・・ [#p28a...
piano2nd# pwd
/root
piano2nd# ssh-keygen -b 1024 -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
54:30:1f:97:84:61:da:03:a6:bd:d8:7f:16:e0:00:bb root@pia...
The key's randomart image is:
+--[ DSA 1024]----+
| . =.=+o. |
| * O.o. |
| o = = |
| = + o |
| E S . . |
| . . |
| . o |
| o |
| |
+-----------------+
ns# scp piano2nd:/root/.ssh/id_dsa_piano2nd_2012.pub /ro...
ssh: piano2nd: No address associated with hostname
ns# scp piano2nd.smb.net:/root/.ssh/id_dsa_piano2nd_2012...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-...
It is also possible that the DSA host key has just been ...
The fingerprint for the DSA key sent by the remote host is
d6:aa:4b:2b:3b:fc:9c:0b:cd:c9:0f:f4:7f:0c:33:50.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get ri...
Offending key in /root/.ssh/known_hosts:12
DSA host key for piano2nd.smb.net has changed and you ha...
Host key verification failed.
ns#
ns#
ns# scp piano2nd.smb.net:/root/.ssh/id_dsa_piano2nd_2012...
The authenticity of host 'piano2nd.smb.net (219.117.246....
DSA key fingerprint is d6:aa:4b:2b:3b:fc:9c:0b:cd:c9:0f:...
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'piano2nd.smb.net' (DSA) to t...
Password:
id_dsa_piano2nd_2012 100% |*****************************...
ns#
**To Do [#k3c49221]
世代バックアップへの対応、ウィルスチェック等が今後の課題...
マシンAにマシンBでのユーザー情報を追加する作業
http://blog.b-shock.co.jp/pooza/2006/01/freebsd_60.html
http://locs.bw.nitech.ac.jp/~kobayashi/computer.html#fedo...
----
#counter([total|today|yesterday]);
&lastmod;
----
終了行:
Lastmodified &lastmod;
#counter([total|today|yesterday]);
----
Contents
#contents
----
* パスワードを求められる [#hebadddb]
今、dsa でキーを作って鍵認証を設定すると、パスワードを求...
ssh-keygen -b 1024 -t dsa
とすると、dsa が生成されるが、鍵交換してもパスワードを求...
ssh-keygen
とすると、デフォルトでRSA-2048 が生成される。2018年10月8...
*RSA-2048以上を推奨 [#r209ceaa]
https://oshiete.goo.ne.jp/qa/8753873.html
ITセキュリティにおいて使用される暗号には、公開鍵暗号、共...
RSA1は、SSH1での使用に限られていて、しかもSSH1には暗号を...
ssh-keygen (-b 2048 : default=2048)
http://www.infoscience.co.jp/technical/rsync/rsync.html#o...
----
*rsync [#n87216d0]
初回バックアップ
sent 28,602,292,240 bytes received 3,199,878 bytes 1,1...
total size is 28,586,529,157 speedup is 1.00
二回目
sent 7,988,547 bytes received 376,646 bytes 123,928.79...
total size is 28,587,054,525 speedup is 3,417.38
三回目w
sent 5,398,911 bytes received 131,592 bytes 165,089.64...
total size is 28,587,204,874 speedup is 5,169.01
*Rsync de backup [#y22e59e5]
**backup スクリプト 2013-04-10 09:41:42 バージョンw [#yb...
/root/bin/backup2blackhole.sh
#!/bin/sh
/usr/local/bin/rsync -av --inplace --exclude '*.core' --...
**rsyncのちょっといいオプションを知った夏の一日 [#q1d5b35d]
http://blog.livedoor.jp/tuzzy92/archives/52541703.html
その名は --inplace
# man rsync | grep inplace
--inplace update destination files in-place
意味は
ファイルの中身の一部分を変更する場合に、目的のファイルに...
※http://omake.accense.com/wiki/LinuxBackupScript より引用
**FreeBSDの準備 [#q0e1fdad]
は、実はあまりない。~
FreeBSDは5.xの頃から、デフォルトではsshdすら起動しない設...
vi /etc/rc.conf
sshd_enable="YES"
とだけ書いておけばいい。デフォルトではパスワード認証を許...
portsから
**rsyncをインストール [#afb324ce]
する必要があるので、
# portinstall net/rsync
しておく。rsyncdを起動する必要もないので、インストール後...
#ref(rsync_option.gif)
リモートのファイル転送では、プッシュ(被バックアップ側が...
公開鍵の登録、バックアップ先ディレクトリの設定等を行い、...
あとは以下のコマンド
/root/bin/backup_to_Guard_all.sh
#!/bin/sh
/usr/local/bin/rsync -av --exclude="/usr/freebsd-update"...
を用意する。
# ./root/bin/backup_to_Guard_all.sh
などとして、動作確認した後、
**crontabに書き込む [#tde4522a]
だけだ。
vi /etc/crontab
# Backup to Piano
30 2 * * * root /root/bin/backup_to_piano.sh
**鍵交換認証 [#n6b51802]
http://phys8.s.chiba-u.ac.jp/nakayamal/machines.html#ssh02
アクセスする側で、
ssh-keygen -b 1024 -t dsa
してid_dsa.pubを作り、アクセス先の~foo/.ssh/へhotshot_id_...
% cp hotshot_id_dsa.pub authorized_keys
する。既にauthorized_keys が存在している様なら、
% cat ~/.ssh/hotshot_id_dsa.pub >> ~/.ssh/authorized_keys
% chmod 600 ~/.ssh/authorized_keys
で、追加書き込みになります。
***piano2nd.smb.net のマシンを入れ替えたので・・・ [#p28a...
piano2nd# pwd
/root
piano2nd# ssh-keygen -b 1024 -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
54:30:1f:97:84:61:da:03:a6:bd:d8:7f:16:e0:00:bb root@pia...
The key's randomart image is:
+--[ DSA 1024]----+
| . =.=+o. |
| * O.o. |
| o = = |
| = + o |
| E S . . |
| . . |
| . o |
| o |
| |
+-----------------+
ns# scp piano2nd:/root/.ssh/id_dsa_piano2nd_2012.pub /ro...
ssh: piano2nd: No address associated with hostname
ns# scp piano2nd.smb.net:/root/.ssh/id_dsa_piano2nd_2012...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-...
It is also possible that the DSA host key has just been ...
The fingerprint for the DSA key sent by the remote host is
d6:aa:4b:2b:3b:fc:9c:0b:cd:c9:0f:f4:7f:0c:33:50.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get ri...
Offending key in /root/.ssh/known_hosts:12
DSA host key for piano2nd.smb.net has changed and you ha...
Host key verification failed.
ns#
ns#
ns# scp piano2nd.smb.net:/root/.ssh/id_dsa_piano2nd_2012...
The authenticity of host 'piano2nd.smb.net (219.117.246....
DSA key fingerprint is d6:aa:4b:2b:3b:fc:9c:0b:cd:c9:0f:...
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'piano2nd.smb.net' (DSA) to t...
Password:
id_dsa_piano2nd_2012 100% |*****************************...
ns#
**To Do [#k3c49221]
世代バックアップへの対応、ウィルスチェック等が今後の課題...
マシンAにマシンBでのユーザー情報を追加する作業
http://blog.b-shock.co.jp/pooza/2006/01/freebsd_60.html
http://locs.bw.nitech.ac.jp/~kobayashi/computer.html#fedo...
----
#counter([total|today|yesterday]);
&lastmod;
----
ページ名: