How to copy directory and file with space
Use NFS and tar command
AIX2 #exportfs
/data -sec=sys,rw,access=AIX1,root=AIX1
AIX1 #ls -l /data
total 0
drwxr-x--- 2 root system 256 Jul 13 10:16 DIR 01
drwxr-x--- 2 root system 256 Jul 13 10:16 DIR 02
drwxr-xr-x 2 root system 256 Nov 16 2011 lost+found
AIX1 #mount AIX2:/data /nfs
AIX1 #df -k /nfs
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
AIX2:/data 10485760 10482204 1% 10 1% /nfs
AIX1 #cd /data ; tar cf - . | (cd /nfs ; tar xf -)
AIX1 #find /nfs -print
/nfs
/nfs/DIR 01
/nfs/DIR 01/fichier texte.txt
/nfs/DIR 01/foo.pdf
/nfs/DIR 02
/nfs/DIR 02/Nouveau dossier
/nfs/DIR 02/Document windows.doc
/nfs/lost+found
/data -sec=sys,rw,access=AIX1,root=AIX1
AIX1 #ls -l /data
total 0
drwxr-x--- 2 root system 256 Jul 13 10:16 DIR 01
drwxr-x--- 2 root system 256 Jul 13 10:16 DIR 02
drwxr-xr-x 2 root system 256 Nov 16 2011 lost+found
AIX1 #mount AIX2:/data /nfs
AIX1 #df -k /nfs
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
AIX2:/data 10485760 10482204 1% 10 1% /nfs
AIX1 #cd /data ; tar cf - . | (cd /nfs ; tar xf -)
AIX1 #find /nfs -print
/nfs
/nfs/DIR 01
/nfs/DIR 01/fichier texte.txt
/nfs/DIR 01/foo.pdf
/nfs/DIR 02
/nfs/DIR 02/Nouveau dossier
/nfs/DIR 02/Document windows.doc
/nfs/lost+found
Commentaires ()
Trackbacks (0)
(Souscrire aux commentaires de cet article)
Aucun trackbacks pour l'instant