Hi everyone, and thanks to all for your assistance.
I have a problem with the rsync command. I want to make a backup of a "source" directory in a "destination" directory.
I want to specify:
- "absolute path of destination" (identified by a ~): ~/Destination
- or a "relative path of destination" (without ~): Destination
The first one (absolute) will make the Backup in: ~/Destination;
The second one (relative) will make the Backup in: $PATH/Destination;
The code I used is:
rsync -ptrb --delete --backup-dir=$2-xyz --suffix="" $source $destination
I have a problem when I use an "absolute path" in $destination: my rsync will try to backup in $PATH/Destination (and not in $Destination).
How can I remedy the concatenation of $destination after $PATH ???
Thank you so much ... I hope you'll help me ...