��� ���� ������ ������� ���o������ ��� OSX �� ������ �������, ���� ���
���� � ������ ����������:
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: $0 <target directory>"
echo " Backup up a HFS+ root file system to the target
directory"
echo " preserving Mac resource forks and Unix access rights."
exit 1
fi
if [ $(id -u) -ne 0 ]; then
echo "$0: you must be root to use this command"
exit 1
fi
ls -1a / | while read i; do
case "$i" in
\.|\.\.|Volumes)
;;
var|tmp|etc|cores)
ln -sf "private/$i" "$1/$i"
;;
mach)
ln -sf "/mach.sym" "$1/$i"
;;
dev)
cp -Rp /dev "$1"
;;
*)
ditto -rsrcFork "/$i" "$1/$i"
;;
esac
done
On Wednesday, Aug 28, 2002, at 14:08 Asia/Jerusalem, rxvm wrote:
> ���� ��� ������� ���������� ���������:
> ���������� ��� ����� �� X
> ����� ���� ������ ������������� ����� �������
> ��� �����, �����, ����� � �������� ��������� ��������
> ���� �����-�� ������� ��������� �����������
>
-----
Machelp; policy & news @ http://www.macrules.ru