Delete over rsync using ssh is not working -


I am testing a rsync where my current folder contains two files:
   Share_2014_09_08. Tar.gz Share_014_10_08.tar.gz   

I want to make RCINC in the remix folder which has three big files I use the command:

 < Code> rsync -avz --del./*.tar.gz backup @ pc01: / home / backup / monthly /   

and the result is the destination destination folder:

  share_2014_03_05.tar.gz share_2014_09_08.tar.gz share_2014_10_08.tar.gz   

As I understand This file should be deleted:

    

You are passing rsync to the list of files that you want to synchronize pass the existing files Not done, therefore the delete option has no effect.

If you want to delete files, you will need to synchronize the removed files to root directory . You can use only the included mask to sync tarballs: / P>

  rsync -avz - include "* .tar.gz" --exclude "*" --del back up @pc 01: / home / backup / monthly /    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -