Direct from rsyncs support page:I love smaller code, for me it's more elegant. I can already scp, dump my db, compress, and name it to yyyy-mm-dd in one line. Just curious how to add gzipped data folders to it.
What is the advantage of rsync? Is it preinstalles in minified CentOS 6?
#! /bin/bash
cd /Users/tracy
rsync -avz -e ssh username@yourdomain.com:/var/www/forum ~/website
rsync -avz -e ssh username@yourdomain.com:/db_backup ~/website
Just curious how to add gzipped data folders to it.
One liners tend to be cumbersome over 80 chars. Personally, I like to use always a shell script where I can write as many lines I like and document inside complex procedures.I love smaller code, for me it's more elegant.
We use essential cookies to make this site work, and optional cookies to enhance your experience.