up

relocate files

relocate files

ディスク 容量が 不足気味なので
まず相手側の 移動するものを 確認する

mm@lx:~$ ssh -l mm 192.168.2.9
Password: 
mm@sv:~$ su -
Password: 
sv:~# cd /home/mm/
sv:/home/mm# ls -l
total 804460
drwx--x--x    7 mm       users        4096 Apr 28 16:58 Mail/
drwxr-xr-x    2 mm       users        4096 Apr 28 20:44 Sample/
-rw-r--r--    1 mm       users      443274 Apr 30 08:43 backup-pl070430.tgz
-rw-r--r--    1 mm       users    822495232 Apr 29 22:44 org-dd-hda1-win98
sv:/home/mm# 
============================
中継する場所での 確認 この 場所にて全て コントロールする
mm@lx:~$ ls
Mail/    awk/        freedos/  open_emac/    s_howto_type/  v-serch20070413
Sample/  b_etc_etc/  latex/    public_html/  todo_dir/
mm@lx:~$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2976052   1728364  64% /
/dev/sda8              2822080   1348552   1330172  51% /var/data
mm@lx:~$ su -
Password: 

lx:~# mount /dev/sda1 /mnt/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2976052   1728364  64% /
/dev/sda8              2822080   1348552   1330172  51% /var/data
/dev/sda1             10079068   2494648   7072424  27% /mnt
lx:~# cd /home/
lx:/home# cd /mnt/home/
lx:/mnt/home# ls
backup-over-master20070411-002/  mm/
lx:/mnt/home# cd backup-over-master20070411-002/
lx:/mnt/home/backup-over-master20070411-002# ls -l
total 565028
-rw-r--r--    1 mm       users    118689221 Apr 11 09:49 20070411-crimaster.tgz
-rw-r--r--    1 mm       users    230232278 Apr 11 09:44 20070411-master-htdocs.tgz
-rw-r--r--    1 mm       users    229079776 Apr 11 09:17 20070411-sv-htdocs.tgz
lx:/mnt/home/backup-over-master20070411-002# pwd
/mnt/home/backup-over-master20070411-002
===========================================

mm@lx:~$ scp 192.168.2.9:/home/mm/org-dd-hda1-win98 /mnt/home/backup-over-master20070411-002/
Password: 
org-dd-hda1-win98                              70%  550MB   3.0MB/s   01:15 ETA


=================================================
mm@lx:~$ scp 192.168.2.9:/home/mm/backup-pl070430.tgz /mnt/home/backup-over-master20070411-002/
Password: 
backup-pl070430.tgz                           100%  432KB   2.5MB/s   00:00  
========================================
lx:/mnt/home/backup-over-master20070411-002# pwd
/mnt/home/backup-over-master20070411-002
lx:/mnt/home/backup-over-master20070411-002# ls
20070411-crimaster.tgz      20070411-sv-htdocs.tgz  org-dd-hda1-win98
20070411-master-htdocs.tgz  backup-pl070430.tgz
lx:/mnt/home/backup-over-master20070411-002# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2976060   1728356  64% /
/dev/sda8              2822080   1348552   1330172  51% /var/data
/dev/sda1             10079068   3299100   6267972  35% /mnt
lx:/mnt/home/backup-over-master20070411-002# cd
lx:~# umount /mnt/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2976060   1728356  64% /
/dev/sda8              2822080   1348552   1330172  51% /var/data
==================================
sv:/home/mm# exit
logout
mm@sv:~$ exit
logout
Connection to 192.168.2.9 closed.
mm@lx:~$ 
=====================


へい おはりです。

にゃんたろう 拝!

2007年11月25日 (日) 21:11:42 JST 作成


up

Copyright © 2004.-2007. nyantarou All Rights Reserved.