Re: restoring using rysnc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>Hi,
>
>My backup server (B) has a /backup/home and I'd like to restore /backup/home/userX to /home/userX in my server A
>
>I am trying to do with in the server where I want to restore.
>
>rsync -e ssh -avzp -R --exclude "*.journal" backup_server:/backup/home/userX/ /home/userX
>
>But it is creating a /home/userX/backup/home/userX
>
>What am I doing wrong?

Trailing slashes & `-R`... Rather than repeat what smarter folk wrote better than I,
type man rsync, then `/trailing` and give it a look. Then catch the relative part
for -R.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux