Rsync problem... deleting files off destination

Posted on 2006-11-16
Last Modified: 2010-04-20

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?

Question by:valhallatech
  • 2
LVL 48

Accepted Solution

Tintin earned 500 total points
Comment Utility
Your assumption is correct.  Is the delete not happening?

Author Comment

Comment Utility
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

Author Comment

Comment Utility
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 ;-)

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
check unix curl command return value 7 61
Squid Authentication 7 31
linux ssh 4 26
AWS CLI - Instances, Volumes & Tagging 2 12
Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now