search for: real_dir

Displaying 2 results from an estimated 2 matches for "real_dir".

2002 Sep 24
2
rsync to a symlink directory
Here is the structure of my servers : Source : /home/test1/link_dir sub_dir1 file1 file2 ... sub_dir2 ... Destination: /home/test2/real_dir sub_dir1 file1 file2 ... subdir2 ... /home/test2/link_dir@ -> real_dir Now I want to update file1. If I run the command rsync -aRz file1 destination:/home/test2/link_dir/sub...
2005 Aug 08
0
[PATCH] put xenstore headers in linux-public
...mlinks in the current working directory that mirror +# <target_files> in <target_dir>. <target_dir> should be relative to the current +# working directory. Symlinks in <target_dir> are ignored. Source-control files +# are ignored. +relative_lnfiles () +{ + local SYMLINK_DIR REAL_DIR pref i + SYMLINK_DIR=$PWD + REAL_DIR=$1 + shift + ( + cd $REAL_DIR + for i in "$*"; do + ln -sf ${REAL_DIR}/$i ${SYMLINK_DIR}/$i + done + ) +} + [ "$1" == "" ] && { echo "Syntax: $0 <linux tree to xenify>"; exit 1; } # Get absolut...