rsync [options] source-path destination-path
where "'''[options]'''" will be set to "'''-avr --delete'''" uses the following for ownCloud restores:
'''-a ''' - archive, mode which includes the use of multiple rsync options. '''-v ''' - verbose, reports all activity rsync performs during a restore. '''-r ''' - recursive, include the sub-directories and their contents during a restore. '''-- delete ''' - delete extraneous directories and files from the destination path directories during a restore.
==== Restore ownCloud ====
===== Upgrade =====
* Restore the ownCloud "config" directory from the most recent backups with the following:
<blockquote>{{Code|rsync -avr --delete /var/hda/backups/daily.0/owncloud/var/hda/web-apps/owncloud/html/config /var/hda/web-apps/owncloud/html/}}
</blockquote>
* The following command-line entry will restore the ownCloud databasefrom the most recent backups:
<blockquote>{{Code|mysql -u owncloud -powncloud owncloud < /var/hda/backups/daily.0/owncloud/database_dump/owncloud_db.sql}}
</blockquote>