copy files from folder to folder

Asked by brett

Ime having problems copying (syncronizing) one folder on 1 computer to another folder on another pc it keeps creating a new folder inside of the folder i want the the files and folders her is the script

echo -=-=-=-=-=- Backup1 home to backup2 home-=-=-=-=-=-=-=-=-
time rsync -r -t -p -o -g -v --progress --delete -l--partial --numeric-ids \
 -z /home/ 192.168.1.3:/home/v_7.10 | tee
/tmp/Backup-Local.txt | grep -v 00\ files\.du -sh /home
ssh 192.168.1.3 du -sh /home/v_7.10
echo

where /home/v_7.10/ is destination of home folder wanting to be the same as other pc
so the home folder and all user is the exact same as other home folder on other pc

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu rsync Edit question
Assignee:
No assignee Edit question
Solved by:
David Tomaschik
Solved:
Last query:
Last reply:
Revision history for this message
David Tomaschik (matir) said :
#1

What is the name of this new folder that is created? The trailing slash on /home/ should prevent it from creating a directory named /home/v_7.10/home. Try doing /home/* as the source.

Revision history for this message
brett (manager-tristateresidentialservices) said :
#2

David Tomaschik wrote:

ha thanks for the help you answered it . i really needed to now if the
trailing / slash means to copy contents into the directory or make a
directory and put contents into new dir.
brett
<email address hidden>

> Your question #22000 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/22000
>
> Status: Open => Needs information
>
> David Tomaschik requested for more information:
> What is the name of this new folder that is created? The trailing slash
> on /home/ should prevent it from creating a directory named
> /home/v_7.10/home. Try doing /home/* as the source.
>
>

Revision history for this message
Best David Tomaschik (matir) said :
#3

I'm glad that was able to fix it! Let me know if you have any more issues. rsync can be a tricky beast.

Revision history for this message
brett (manager-tristateresidentialservices) said :
#4

David Tomaschik wrote:

thanks a hole lot
brett

> Your question #22000 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/22000
>
> Status: Open => Answered
>
> David Tomaschik proposed the following answer:
> I'm glad that was able to fix it! Let me know if you have any more
> issues. rsync can be a tricky beast.
>
>

Revision history for this message
brett (manager-tristateresidentialservices) said :
#5

brett wrote:

no problem solved thanks
brett

> Your question #22000 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/22000
>
> Status: Answered => Open
>
> You are still having a problem:
> David Tomaschik wrote:
>
>
> thanks a hole lot
> brett
>
>
>
>> Your question #22000 on Ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+question/22000
>>
>> Status: Open => Answered
>>
>> David Tomaschik proposed the following answer:
>> I'm glad that was able to fix it! Let me know if you have any more
>> issues. rsync can be a tricky beast.
>>
>>
>>
>
>

Revision history for this message
brett (manager-tristateresidentialservices) said :
#6

Thanks David Tomaschik, that solved my question.