Solved

Rsync problem... deleting files off destination

Posted on 2006-11-16
3
313 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 85
lunix and unix command 21 121
list of sudo access for date range 5 35
PHP website on Linux - server DNS address could not be found. 18 88
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

696 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