Changes

From Amahi Wiki
Jump to: navigation, search
* Restore the ownCloud "apps" 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/apps /var/hda/web-apps/owncloud/html/}}
</blockquote>
* Restore the ownCloud database from the most recent backups using the database dump file:
 
:1. Recreate the database ('''THIS IS EXTREMELY IMPORTANT'''):
<blockquote>{{Code|mysqladmin -uowncloud -powncloud -f drop owncloud;
mysqladmin -uowncloud -powncloud -f create owncloud;}}
</blockquote>
:2. Restore the database:
<blockquote>{{Code|mysql -u owncloud -powncloud owncloud < /var/hda/backups/daily.0/owncloud/database_dump/owncloud_db.sql}}
</blockquote>