Can I omit the source folder name in the rsync'd version?

This is a discussion on Can I omit the source folder name in the rsync'd version? within the Rsync forums, part of the Networking and Network Related category; Hi I have two hard disks. One is mounted as /home and the other as /homecopy. I would like to ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2004
Joseph Hill
 
Posts: n/a
Default Can I omit the source folder name in the rsync'd version?

Hi

I have two hard disks. One is mounted as /home and the other as
/homecopy. I would like to make sure that at least once a day,
/homecopy contains all the info at /home does. So that if /home went
pop, /homecopy could be swapped over.

"rsync -a /home /homecopy"

was my initial thought. However, this would produce a directory called
"home" in /homecopy and all the files from /home/* would be copied to
/homecopy/home/*

Any idea how to copy from /home , but omiting the source directory
name in the copied version?

to clarify - "rsync -a /home /homecopy" copies /home/joe/whatever.html
to /homecopy/home/joe/whatever.html - when I'd like it to copy it to
/homecopy/joe/whatever.html

any ideas?

Joe
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0