Hi
no havent tried that, Its a bit more complicated actualy. its a script that reads a list of directorys from a text file and loops through them all, and gets a $source_file which is also the destination variable.
so the command is actualy
rsync -va $source_file $remote_host@$source_file
if i echo this line i get
rsyn -va /www/html webserver1:/www/html
my question really, is the above syntax correct?
to try what you suggest i would need to do something like
$source_file == $dest_path
and then strip the last directory off the $dest_path
hhmm anyone know how to do that?