InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Rsync tutorials

  • Linux rsync tutorial
  • Custom identity file with rsync
  • Exclude a file extension
  • Rsync - show progress and transfer rate
  • Using dryrun to list changed files
  • Using rsync for production release automation
 
  • Home
  • > Tutorials
  • > Linux/Unix Command Line
  • > Rsync

Rsync – using dryrun to list changed files

By admin on Jan 7, 2016

Use rsync dryrun (-n) with -i (or –itemize-changes) to list changed files.

$ rsync -n -i -a ./dir1 ./destdir/
cd+++++++ dir1/
>f+++++++ dir1/file1.php
>f+++++++ dir1/file2.php


To get changed files as a list:

$ rsync -n -i -a ./dir1 ./destdir/  | egrep "^>f" | cut -d" " -f2

This can be useful to run php lint, etc. before pushing code to production.

Suggested posts:

  1. How to log page latency and url host in apache log
  2. How to install drupal on Mac usin MAMP
  3. Linux/Unix – find inode number of a file
  4. Mac Finder – how to search system hidden files
  5. Custom terminal tab title and ssh on mac
  6. Jenkins how to clone a project
  7. AngularJS format date using date filter
  8. CSS clearfix – clear float automatically using ::after
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux, Linux/Unix Command Line, Rsync, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress