?
Solved

Rsync problem... deleting files off destination

Posted on 2006-11-16
3
Medium Priority
?
325 Views
Last Modified: 2010-04-20
hi

I have a script with this line:

rsync -avz -e ssh  --delete root@$SRC:/home $DEST/master.d

 that brings files from a remote server to my home. Im expecting that if a file is deleted from $SRC/home, then it would get deleted from $DEST/master.d

Is that correct?
If not how should i do it?

thanks
0
Comment
Question by:valhallatech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 17961540
Your assumption is correct.  Is the delete not happening?
0
 
LVL 2

Author Comment

by:valhallatech
ID: 17961632
no I remove a file, say bla.tar.gz, from $SRC/home/myhome/, but after running rsync, its still there as $DEST/master.d/myhome/bla.tar.tz
for trouble shooting purposes im executing as root (so $DEST is at my house and $SRC is across the atlantic) - so dont think theres a permission prob
ideas?
 
0
 
LVL 2

Author Comment

by:valhallatech
ID: 17961741
ok yes it is - my  bad - had /master.d/myhome/*  and /master.d/home/myhom/* ... was looking at files that shouldnt have ever been there
happy 500 point day ;-)
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question