[Pkg-owncloud-commits] [owncloud-doc] 04/18: restore.rst added

David Prévot taffit at moszumanska.debian.org
Wed Nov 20 20:35:20 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch dfsg_clean
in repository owncloud-doc.

commit 99010b9fb918aac7e44c36383e305f5759ab9780
Author: Francesco Frassinleli <fraph24 at gmail.com>
Date:   Fri Nov 15 15:29:57 2013 +0100

    restore.rst added
    
    Commands to restore folders and database are now available.
    restore.rst added to index.rst
    index.rst page order is changed
---
 admin_manual/maintenance/index.rst   |    6 ++++--
 admin_manual/maintenance/restore.rst |   39 ++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/admin_manual/maintenance/index.rst b/admin_manual/maintenance/index.rst
index 778d2cf..e5aed89 100644
--- a/admin_manual/maintenance/index.rst
+++ b/admin_manual/maintenance/index.rst
@@ -5,6 +5,8 @@ Maintenance
 .. toctree::
    :maxdepth: 1
 
-   migrating
-   update
    backup
+   update
+   restore
+   migrating
+
diff --git a/admin_manual/maintenance/restore.rst b/admin_manual/maintenance/restore.rst
new file mode 100644
index 0000000..9885c51
--- /dev/null
+++ b/admin_manual/maintenance/restore.rst
@@ -0,0 +1,39 @@
+Restoring ownCloud
+================================
+
+To restore an ownCloud installation there are three main things you need to restore:
+
+#. The config folder
+#. The data folder
+#. The database
+
+Restore Folders
+------
+
+.. note:: This guide assumes that your previous backup is called "owncloud-dirbkp"
+
+Simply copy your config and data folder (or even your whole ownCloud install and data folder) to a place outside of your ownCloud environment. You could use this command:
+
+    rsync -Aax owncloud-dirbkp/ owncloud/
+
+Restore Database
+------
+
+.. note:: This guide assumes that your previous backup is called "owncloud-sqlbkp.bak"
+
+MySQL
+^^^^^
+
+MySQL is the recommended database engine. To backup MySQL:
+
+    mysql -h [server] -u [username] < owncloud-sqlbkp.bak
+
+SQLite
+^^^^^
+
+    sqlite3 data/owncloud.db .dump < owncloud-sqlbkp.bak
+
+PostgreSQL
+^^^^^
+
+    pg_restore -c -d owncloud -h [server] -U [username] owncloud-sqlbkp.bak

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list