Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    [BASH] rsync - absolute destination path

    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" ==> example: ~/Destination [I give it in the terminal];

    Then I want the rsync will make the Backup in: ~/Destination;

    I have a problem when I use an "absolute path": my rsync will try to backup in $PATH/Destination (and not in $Destination).

    Question: How can I remedy the concatenation of $destination after $PATH ???

    Thank you so much ... I hope you'll help me, please.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Hmm, you do not show your rsyncd.conf,
    nor the rsync command you use.
    It is also unclear if either source or destination are on a remote computer

    But a
    rsync -av /source/* /destination/
    should do the trick locally.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...