Thursday, 15 March 2012

linux - How to RSYNC a single file? -



linux - How to RSYNC a single file? -

currently rsync-ing directories like:

* * * * * rsync -avz /var/www/public_html/images root@<remote-ip>:/var/www/public_html

so how rsync 1 single file like, /var/www/public_html/.htaccess ?

you same way directory, specify total path filename source. in example:

rsync -avz /var/www/public_html/.htaccess root@<remote-ip>:/var/www/public_html/

linux file rsync

No comments:

Post a Comment