Sunday, May 5, 2013

Rsync command usage for Application files while Cloning


Run rsync commands from target application node

/usr/bin/rsync --delete -av --exclude-from=/asccnv/rsync_appl_top_exclude -e ssh ascuat@igrexandc002cn05:/ascuat/app/applmgr/ascuat/appl/ /asccnv/app/applmgr/IRasccnv/appl/ --rsync-path=/usr/bin/rsync

/usr/bin/rsync --delete -av --exclude-from=/asccnv/rsync_comn_top_exclude -e ssh ascuat@igrexandc002cn05:/ascuat/app/applmgr/ascuat/comn/ /asccnv/app/applmgr/IRasccnv/comn/ --rsync-path=/usr/bin/rsync

/usr/bin/rsync --delete -av --exclude-from=/asccnv/rsync_techst_exclude -e ssh ascuat@igrexandc002cn05:/ascuat/app/applmgr/ascuat/techst/ /asccnv/app/applmgr/IRasccnv/techst/ --rsync-path=/usr/bin/rsync



[asccnv@igrexanwh002cn06 ~]$ cat /asccnv/rsync_appl_top_exclude
- admin/log/**
- admin/out/**
- *.log
- *.out
- *.req
- *.tmp
- *.rti
- *.PDF
- *.tar.gz
- *.EXCEL

[asccnv@igrexanwh002cn06 ~]$ cat /asccnv/rsync_comn_top_exclude
- admin/log/**
- admin/out/**
- temp/**
- ptemp/**
- _pages/**
- *.log
- *.out
- *.req
- *.mgr
- *.tmp
- FNDCP*.txt
- WFM*.txt
- *.rti
- *.PDF
- *.tar.gz
- *.EXCEL

[asccnv@igrexanwh002cn06 ~]$ cat /asccnv/rsync_techst_exclude
- *.log
- *.out
- *.tmp
- *.tar.gz

No comments:

Post a Comment