How to remove files created at target using rsync
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY sandeep.sasikumar
4 years ago
Networking
0
comments comment

rsync is a powerful file and folder synchronization tool in Linux. To read more about rsync please go through this link:
http://www.zyxware.com/articles/2717/how-to-backupcopysynchronise-a-full-folder-lying-on-a-remote-server-onto-another-localremote-machine-easily-using-

rsync usually creates files or folders that are present in source to the destination folder. But there are cases where the files has been removed from source but thay are still present in destination. This can some times cause problems as the destination directory keeps on increasing in size but the source directory size is less. It usually happens when an rsync has been run by keeping a tar.gz file at the source. This will sync the tar file to the destination but even if you remove the tar file from source it will have a tar file copy at the destination. So to avoid such things and also to keep both source and destination up to date we can use rsync '--delete' option

rsync -avz --delete source destination

This will synchronize the two folders and remove the other unwanted files from destination and keep both source and destination up to date.


RELATED ARTICLE

more_horiz
close

on 05th May 2007 / by webmaster
BSNL is one of the leading broadband providers in India. Hardware Linux Networking Ubuntu Leave a reply Your email address will not be published. Required fields are marker * Abhi (not verified) access_time 16 Jul 2019 - 14:26 Hello, I am trying to connect to my D-link DI-614 wireless router to the my BSNL ADSL broadband modem DB108. My PC is currently connected to the modem via an ethernet link. Instead, I established a two-way connection in the following way: 1) Router - modem via ethernet cable. 2) PC - Router via an ethernet cable. However when I do this, my PC is not able to connect to the internet. I am wondering if anyone can help me out with this. Subhadeep (not verified) access_time 16 Jul 2019 - 14:26 Thankx for this i was in a real problem connecting to the net via broadband on BSNL. Thankx again man u r life saver... Pagination Current page 1 Page 2 Page 3 Page 4 Next page Next › Last page Last » Add new comment
more_horiz
close

on 27th June 2009 / by webmaster
BSNL is the largest broadband provider in India and probably the most preferred as well by the customers because of its reliable network and excellent customer service at Indian costs. Now let us take a look at the different kinds of Modem provided by BSNL. BSNL basically provides four types of Modems(CPEs). The following post will give you the details regarding the available modems in BSNL and also the customer end requirements for these modems. Networking Windows BSNL Leave a reply Your email address will not be published. Required fields are marker * ashik (not verified) access_time 16 Jul 2019 - 21:31 can any one tell which modem is best to select from bsnl. plssssssss......... VINODH SIMON (not verified) access_time 16 Jul 2019 - 21:31 Pl let me know the type of modem to be selected for the PLAN-BB HOME COMBO 900. prasanta sahoo (not verified) access_time 16 Jul 2019 - 21:31 dear sir we required a SNMP based modem with wifi enabled modem fpr a big project which monitor the modem and device status through NMS tool.please suggest a specific model for our project. thanks prasanta sahoo 9040006200 Add new comment
Leave a reply
Your email address will not be published. Required fields are marker *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.