How to exclude files in SCP

    To exclude/include file you have to use rsync
    To Exclude svn files (You can do any type)

    rsync -rav --exclude '*.svn' root@mohitsharma.net  /var/www/html

    To Include

    rsync -rav --include='*.php'  root@mohitsharma.net  /var/www/html


    Flags that can be used
        -r for recursive in all files folder
        -a for archive
        -v for verbose output
    5
    Average: 5 (1 vote)