Linux remote backup via rsync
The following is a simple example of using rsync to backup remote data in a cron scheduled fashion.
*/5 * * * * rsync -vrupogtzh -e "ssh -p 22" --exclude ".git" root@IP:/path/from/ /path/to/ > /dev/null
The following is a simple example of using rsync to backup remote data in a cron scheduled fashion.
*/5 * * * * rsync -vrupogtzh -e "ssh -p 22" --exclude ".git" root@IP:/path/from/ /path/to/ > /dev/null