Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

Rsync problem... deleting files off destination


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?

  • 2
1 Solution
Your assumption is correct.  Is the delete not happening?
valhallatechAuthor Commented:
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/
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
valhallatechAuthor Commented:
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 ;-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now